From 2489b5fd74a436ebe0bcdcc5dccf9e89bac08a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 26 Mar 2025 22:47:59 +0100 Subject: [PATCH] build.zig: Stop setting _WIN32_WINNT=0x601 (Windows 7) when targeting MinGW. Our default minimum version for Windows has been Windows 10 for a while. --- build.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.zig b/build.zig index cf216376de..9794514f1f 100644 --- a/build.zig +++ b/build.zig @@ -354,11 +354,7 @@ pub fn build(b: *std.Build) !void { &[_][]const u8{ tracy_path, "public", "TracyClient.cpp" }, ); - // On mingw, we need to opt into windows 7+ to get some features required by tracy. - const tracy_c_flags: []const []const u8 = if (target.result.os.tag == .windows and target.result.abi == .gnu) - &[_][]const u8{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined", "-D_WIN32_WINNT=0x601" } - else - &[_][]const u8{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined" }; + const tracy_c_flags: []const []const u8 = &.{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined" }; exe.root_module.addIncludePath(.{ .cwd_relative = tracy_path }); exe.root_module.addCSourceFile(.{ .file = .{ .cwd_relative = client_cpp }, .flags = tracy_c_flags });