From 9c84b5cc18b6f78d1eec25432c3cd2988edb83ed Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 29 Jul 2024 23:06:39 -0700 Subject: [PATCH] build.zig: fix -Dskip-non-native now it actually does what it says on the tin --- test/tests.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index b4c720a1ff..e56164366d 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -992,11 +992,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { const step = b.step(b.fmt("test-{s}", .{options.name}), options.desc); for (test_targets) |test_target| { - const is_native = test_target.target.isNative() or - (test_target.target.os_tag == builtin.os.tag and - test_target.target.cpu_arch == builtin.cpu.arch); - - if (options.skip_non_native and !is_native) + if (options.skip_non_native and !test_target.target.isNative()) continue; const resolved_target = b.resolveTargetQuery(test_target.target);