Skip to content

Commit

Permalink
build: enable sanitizer opts on native linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperi committed Nov 14, 2024
1 parent e08c4dd commit cab7ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn build(b: *std.Build) !void {

// Sanitizers are not properly supported in musl => mac only

const asan = if (target.query.isNative() and target.result.isDarwin())
const asan = if (target.query.isNative())
b.option(
bool,
"asan",
Expand All @@ -97,7 +97,7 @@ pub fn build(b: *std.Build) !void {
else
false;

const ubsan = if (target.query.isNative() and target.result.isDarwin())
const ubsan = if (target.query.isNative())
b.option(
bool,
"ubsan",
Expand Down

0 comments on commit cab7ae0

Please sign in to comment.