Skip to content

Commit

Permalink
defineCMacro -> root_module.addCMacro
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Dec 20, 2024
1 parent 55320cc commit cbc79b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn build(b: *std.Build) !void {
minisign.addIncludePath(b.path("src"));
minisign.addSystemIncludePath(.{ .cwd_relative = "/opt/homebrew/include" });
minisign.addSystemIncludePath(.{ .cwd_relative = "/usr/local/include" });
minisign.defineCMacro("_GNU_SOURCE", "1");
minisign.root_module.addCMacro("_GNU_SOURCE", "1");
const source_files = &.{ "src/base64.c", "src/get_line.c", "src/helpers.c", "src/minisign.c" };
minisign.addCSourceFiles(.{ .files = source_files });

Expand Down

0 comments on commit cbc79b3

Please sign in to comment.