mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
build.zig: fix -Dskip-non-native
now it actually does what it says on the tin
This commit is contained in:
parent
12d0c9a2fc
commit
9c84b5cc18
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue