authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-03-26 22:47:59+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-03-26 23:12:55+01:00
log2489b5fd74a436ebe0bcdcc5dccf9e89bac08a1c
tree9a7145ec80f15e0c7ce3833ce0d76341854f329f
parentccffc7f108dd9a18698f2c65523e4ab3bae1cd23
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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.

1 files changed, 1 insertions(+), 5 deletions(-)

build.zig+1-5
...@@ -354,11 +354,7 @@ pub fn build(b: *std.Build) !void {...@@ -354,11 +354,7 @@ pub fn build(b: *std.Build) !void {
354 &[_][]const u8{ tracy_path, "public", "TracyClient.cpp" },354 &[_][]const u8{ tracy_path, "public", "TracyClient.cpp" },
355 );355 );
356356
357 // On mingw, we need to opt into windows 7+ to get some features required by tracy.357 const tracy_c_flags: []const []const u8 = &.{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined" };
358 const tracy_c_flags: []const []const u8 = if (target.result.os.tag == .windows and target.result.abi == .gnu)
359 &[_][]const u8{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined", "-D_WIN32_WINNT=0x601" }
360 else
361 &[_][]const u8{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined" };
362358
363 exe.root_module.addIncludePath(.{ .cwd_relative = tracy_path });359 exe.root_module.addIncludePath(.{ .cwd_relative = tracy_path });
364 exe.root_module.addCSourceFile(.{ .file = .{ .cwd_relative = client_cpp }, .flags = tracy_c_flags });360 exe.root_module.addCSourceFile(.{ .file = .{ .cwd_relative = client_cpp }, .flags = tracy_c_flags });