Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid deprecated C macro API in build script #2

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

andrewrk
Copy link
Contributor

@andrewrk andrewrk commented Dec 23, 2024

deprecated API removed in ziglang/zig#20388

Tested with 0.14.0-dev.2548+0f17cbfc6.

Before:

andy@bark ~/s/glslang-zig (main)> zig build
/home/andy/src/glslang-zig/build.zig:831:12: error: no field or member function named 'defineCMacro' in 'Build.Step.Compile'
    compile.defineCMacro("ENABLE_OPT", if (enable_opt) "1" else "0");
    ~~~~~~~^~~~~~~~~~~~~

After: successful build

@MasonRemaley MasonRemaley merged commit 8fcb4d5 into Games-by-Mason:main Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants