Skip to content

Commit

Permalink
fix deprecated build apis (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcat-42 authored Jan 3, 2025
1 parent 9d3f75c commit 2725170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .zigversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0-dev.1911+3bf89f55c
0.14.0-dev.2563+af5e73172
6 changes: 3 additions & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn build(b: *std.Build) void {
.target = target,
.optimize = optimize,
});
lib.defineCMacro("TRACY_EXPORTS", "");
lib.root_module.addCMacro("TRACY_EXPORTS", "");
break :blk lib;
} else b.addStaticLibrary(.{
.name = "tracy",
Expand All @@ -76,13 +76,13 @@ pub fn build(b: *std.Build) void {
},
});

if (options.on_demand) tracy.defineCMacro("TRACY_ON_DEMAND", null);
if (options.on_demand) tracy.root_module.addCMacro("TRACY_ON_DEMAND", "");

tracy.linkLibC();
if (target.result.abi != .msvc) {
tracy.linkLibCpp();
} else {
tracy.defineCMacro("fileno", "_fileno");
tracy.root_module.addCMacro("fileno", "_fileno");
}

switch (target.result.os.tag) {
Expand Down

0 comments on commit 2725170

Please sign in to comment.