From da3628de2b7ec2c702cfea739acca09888bf392a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=92=80=B3=20Scribe=20of=20the=20Ziggurat=F0=92=85=86?= =?UTF-8?q?=F0=92=82=8D=F0=92=89=AA?= Date: Tue, 24 Dec 2024 16:58:47 +1000 Subject: [PATCH] change from defineCMacro to addCMacro --- build.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.zig b/build.zig index efad9a0f..a4450916 100644 --- a/build.zig +++ b/build.zig @@ -34,7 +34,7 @@ pub fn build(b: *std.Build) void { else => lib.root_module.strip = true, } if (tests) - lib.defineCMacro("TESTING", null); + lib.root_module.addCMacro("TESTING", ""); lib.addCSourceFiles(.{ .files = &.{ "src/vml.c", @@ -107,7 +107,7 @@ pub fn build(b: *std.Build) void { .flags = cflags, }) else - lib.defineCMacro("USE_STANDARD_TMPFILE", null); + lib.root_module.addCMacro("USE_STANDARD_TMPFILE", ""); lib.addIncludePath(b.path("include")); lib.addIncludePath(b.path("third_party")); @@ -283,7 +283,7 @@ fn buildTest(b: *std.Build, info: BuildInfo) void { .optimize = info.lib.root_module.optimize.?, .target = info.lib.root_module.resolved_target.?, }); - exe.defineCMacro("TESTING", null); + exe.root_module.addCMacro("TESTING", ""); exe.addCSourceFile(.{ .file = b.path(info.path), .flags = cflags,