aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-29 23:06:39 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-08-01 13:47:29 -0700
commit9c84b5cc18b6f78d1eec25432c3cd2988edb83ed (patch)
tree62c83754fd9177337bed37f64eb7891d06ea8fa2 /test/tests.zig
parent12d0c9a2fc1220ec5cba62f1923c502cd5607bf4 (diff)
downloadzig-9c84b5cc18b6f78d1eec25432c3cd2988edb83ed.tar.gz
zig-9c84b5cc18b6f78d1eec25432c3cd2988edb83ed.zip
build.zig: fix -Dskip-non-native
now it actually does what it says on the tin
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig6
1 files changed, 1 insertions, 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);