Skip to content

Commit 70e8eba

Browse files
authored
Merge pull request #5 from pfgithub/pfgithub-patch-1
Fix native build on windows host Fix missing icon folder when used as a dependency
2 parents 581b052 + 31ffb62 commit 70e8eba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ pub fn build(b: *std.Build) !void {
359359
// `windows.h` which is problematic when cross compiling
360360
// from a case-sensitive filesystem.
361361
// https://github.com/llvm/llvm-project/issues/161400
362-
if (target.result.os.tag == .windows) {
362+
if (target.result.os.tag == .windows and b.graph.host.result.os.tag != .windows) {
363363
const upper_case_windows_h = b.addWriteFiles().add("Windows.h", "#include <windows.h>");
364364
tracy_profiler.root_module.addIncludePath(upper_case_windows_h.dirname());
365365
}

build.zig.zon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
.paths = .{
134134
"capture",
135135
"csvexport",
136+
"icon",
136137
"import",
137138
"include",
138139
"manual/tracy.md",

0 commit comments

Comments
 (0)