Skip to content

Commit 2af2658

Browse files
committed
avoid deprecated C macro API in build script
deprecated API removed in ziglang/zig#20388
1 parent 5f7826e commit 2af2658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ fn configureGlslangBinary(compile: *std.Build.Step.Compile, enable_opt: bool) vo
828828
compile.addIncludePath(glslang_upstream.path(""));
829829
compile.addIncludePath(b.path("generated/glslang"));
830830

831-
compile.defineCMacro("ENABLE_OPT", if (enable_opt) "1" else "0");
831+
compile.root_module.addCMacro("ENABLE_OPT", if (enable_opt) "1" else "0");
832832
}
833833

834834
fn configureGlslangLibrary(lib: *std.Build.Step.Compile, enable_opt: bool) void {

0 commit comments

Comments
 (0)