| ... | ... | @@ -354,11 +354,7 @@ pub fn build(b: *std.Build) !void { |
| 354 | 354 | &[_][]const u8{ tracy_path, "public", "TracyClient.cpp" }, |
| 355 | 355 | ); |
| 356 | 356 | |
| 357 | | // On mingw, we need to opt into windows 7+ to get some features required by tracy. |
| 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" }; |
| 357 | const tracy_c_flags: []const []const u8 = &.{ "-DTRACY_ENABLE=1", "-fno-sanitize=undefined" }; |
| 362 | 358 | |
| 363 | 359 | exe.root_module.addIncludePath(.{ .cwd_relative = tracy_path }); |
| 364 | 360 | exe.root_module.addCSourceFile(.{ .file = .{ .cwd_relative = client_cpp }, .flags = tracy_c_flags }); |