| ... | @@ -992,11 +992,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { | ... | @@ -992,11 +992,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { |
| 992 | const step = b.step(b.fmt("test-{s}", .{options.name}), options.desc); | 992 | const step = b.step(b.fmt("test-{s}", .{options.name}), options.desc); |
| 993 | | 993 | |
| 994 | for (test_targets) |test_target| { | 994 | for (test_targets) |test_target| { |
| 995 | const is_native = test_target.target.isNative() or | 995 | if (options.skip_non_native and !test_target.target.isNative()) |
| 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) | | |
| 1000 | continue; | 996 | continue; |
| 1001 | | 997 | |
| 1002 | const resolved_target = b.resolveTargetQuery(test_target.target); | 998 | const resolved_target = b.resolveTargetQuery(test_target.target); |