Skip to content

Commit

Permalink
Fix benchmark option
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Mar 25, 2024
1 parent d983ed4 commit 5b0af70
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ pub fn build(b: *std.Build) void {
}

const with_benchmark: bool = b.option(bool, "with-benchmark", "Compile benchmark") orelse false;
lib_options.addOption(bool, "non_temporal_stores", with_benchmark);
if (with_benchmark) {
lib.defineCMacro("NON_TEMPORAL_STORES", "1");
}
lib_options.addOption(bool, "benchmark", with_benchmark);

lib.addIncludePath(.{ .path = "src/include" });

Expand Down

0 comments on commit 5b0af70

Please sign in to comment.