commit 9c84b5cc18b6f78d1eec25432c3cd2988edb83ed (tree) parent 12d0c9a2fc1220ec5cba62f1923c502cd5607bf4 Author: Andrew Kelley <andrew@ziglang.org> Date: Mon, 29 Jul 2024 23:06:39 -0700 build.zig: fix -Dskip-non-native now it actually does what it says on the tin Diffstat:
| M | test/tests.zig | | | 6 | +----- |
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git 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);