From b732558c0a49c0a3483b1188d0147c44a181a13f Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 4 Dec 2025 13:38:15 -0800 Subject: [PATCH 1/3] Fix native build on windows host --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 9f48e102b6..9dca294e1f 100644 --- a/build.zig +++ b/build.zig @@ -359,7 +359,7 @@ pub fn build(b: *std.Build) !void { // `windows.h` which is problematic when cross compiling // from a case-sensitive filesystem. // https://github.com/llvm/llvm-project/issues/161400 - if (target.result.os.tag == .windows) { + if (target.result.os.tag == .windows and b.resolveTargetQuery(.{}).result.os.tag != .windows) { const upper_case_windows_h = b.addWriteFiles().add("Windows.h", "#include "); tracy_profiler.root_module.addIncludePath(upper_case_windows_h.dirname()); } From 751c6afc8d3dacba99079918f0db939b34f6fc89 Mon Sep 17 00:00:00 2001 From: pfg Date: Thu, 4 Dec 2025 13:42:09 -0800 Subject: [PATCH 2/3] Fix missing icon file in build.zig.zon --- build.zig.zon | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig.zon b/build.zig.zon index 5403d1676d..a593bdf99d 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -133,6 +133,7 @@ .paths = .{ "capture", "csvexport", + "icon", "import", "include", "manual/tracy.md", From 31ffb62179ff9050fc795822cc6206cf2075b617 Mon Sep 17 00:00:00 2001 From: pfg Date: Sat, 6 Dec 2025 22:10:02 -0800 Subject: [PATCH 3/3] Update build.zig Co-authored-by: Techatrix --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 9dca294e1f..923ce079c2 100644 --- a/build.zig +++ b/build.zig @@ -359,7 +359,7 @@ pub fn build(b: *std.Build) !void { // `windows.h` which is problematic when cross compiling // from a case-sensitive filesystem. // https://github.com/llvm/llvm-project/issues/161400 - if (target.result.os.tag == .windows and b.resolveTargetQuery(.{}).result.os.tag != .windows) { + if (target.result.os.tag == .windows and b.graph.host.result.os.tag != .windows) { const upper_case_windows_h = b.addWriteFiles().add("Windows.h", "#include "); tracy_profiler.root_module.addIncludePath(upper_case_windows_h.dirname()); }