We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcf5a5f commit f31ee85Copy full SHA for f31ee85
build.zig
@@ -30,7 +30,7 @@ pub fn build(b: *std.Build) void {
30
});
31
if (!shared) {
32
lib.pie = true;
33
- lib.defineCMacro("AMQP_STATIC", "");
+ lib.root_module.addCMacro("AMQP_STATIC", "");
34
}
35
const configH = b.addConfigHeader(.{
36
.style = .blank,
@@ -46,7 +46,7 @@ pub fn build(b: *std.Build) void {
46
},
47
.ENABLE_SSL_ENGINE_API = if (ssl) {} else null,
48
49
- lib.defineCMacro("HAVE_CONFIG_H", null);
+ lib.root_module.addCMacro("HAVE_CONFIG_H", "");
50
lib.addConfigHeader(configH);
51
lib.addIncludePath(generated_export_header.getDirectory());
52
lib.addIncludePath(b.path("include"));
0 commit comments