File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- 0.14.0-dev.1911+3bf89f55c
1+ 0.14.0-dev.2563+af5e73172
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ pub fn build(b: *std.Build) void {
5858 .target = target ,
5959 .optimize = optimize ,
6060 });
61- lib .defineCMacro ("TRACY_EXPORTS" , "" );
61+ lib .root_module . addCMacro ("TRACY_EXPORTS" , "" );
6262 break :blk lib ;
6363 } else b .addStaticLibrary (.{
6464 .name = "tracy" ,
@@ -76,13 +76,13 @@ pub fn build(b: *std.Build) void {
7676 },
7777 });
7878
79- if (options .on_demand ) tracy .defineCMacro ("TRACY_ON_DEMAND" , null );
79+ if (options .on_demand ) tracy .root_module . addCMacro ("TRACY_ON_DEMAND" , "" );
8080
8181 tracy .linkLibC ();
8282 if (target .result .abi != .msvc ) {
8383 tracy .linkLibCpp ();
8484 } else {
85- tracy .defineCMacro ("fileno" , "_fileno" );
85+ tracy .root_module . addCMacro ("fileno" , "_fileno" );
8686 }
8787
8888 switch (target .result .os .tag ) {
You can’t perform that action at this time.
0 commit comments