You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The comment I left on #19840 applies here as well: -D is also a per-module option, so it needs to be passed to the module that needs it. In your example project, this means replacing exe.defineCMacro("CFOO", "1"); with binding.addCMacro("CFOO", "1");
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
if in build.zig you define something like
exe.defineCMacro("NOCPP",
"1");and the header file the you
cImport` has something likethe compilation will fail. However, if before the
cImport
you use@cDefine("NOCPP", "1");
, it worksExpected Behavior
I'd expect the
defineCMacro
to be respectedThe text was updated successfully, but these errors were encountered: