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 dee39ab commit ac5eaa3
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 @@ -20,7 +20,7 @@ pub fn build(b: *std.Build) void {
const favor_performance: bool = b.option(bool, "favor-performance", "Favor performance over side channel mitigations") orelse false;
lib_options.addOption(bool, "favor_performance", favor_performance);
if (favor_performance) {
lib.defineCMacro("FAVOR_PERFORMANCE", "1");
lib.root_module.addCMacro("FAVOR_PERFORMANCE", "1");
}

const with_benchmark: bool = b.option(bool, "with-benchmark", "Compile benchmark") orelse false;
Expand Down

0 comments on commit ac5eaa3

Please sign in to comment.