Skip to content

Commit 9c84b5c

Browse files
committed
build.zig: fix -Dskip-non-native
now it actually does what it says on the tin
1 parent 12d0c9a commit 9c84b5c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/tests.zig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -992,11 +992,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
992992
const step = b.step(b.fmt("test-{s}", .{options.name}), options.desc);
993993

994994
for (test_targets) |test_target| {
995-
const is_native = test_target.target.isNative() or
996-
(test_target.target.os_tag == builtin.os.tag and
997-
test_target.target.cpu_arch == builtin.cpu.arch);
998-
999-
if (options.skip_non_native and !is_native)
995+
if (options.skip_non_native and !test_target.target.isNative())
1000996
continue;
1001997

1002998
const resolved_target = b.resolveTargetQuery(test_target.target);

0 commit comments

Comments
 (0)