| ... | ... | @@ -28,6 +28,7 @@ const TestTarget = struct { |
| 28 | 28 | mode: builtin.Mode = .Debug, |
| 29 | 29 | link_libc: bool = false, |
| 30 | 30 | single_threaded: bool = false, |
| 31 | disable_native: bool = false, |
| 31 | 32 | }; |
| 32 | 33 | |
| 33 | 34 | const test_targets = [_]TestTarget{ |
| ... | ... | @@ -175,6 +176,8 @@ const test_targets = [_]TestTarget{ |
| 175 | 176 | .abi = .gnu, |
| 176 | 177 | }, |
| 177 | 178 | }, |
| 179 | // TODO https://github.com/ziglang/zig/issues/3295 |
| 180 | .disable_native = true, |
| 178 | 181 | }, |
| 179 | 182 | |
| 180 | 183 | TestTarget{ |
| ... | ... | @@ -365,6 +368,14 @@ pub fn addPkgTests( |
| 365 | 368 | if (skip_single_threaded and test_target.single_threaded) |
| 366 | 369 | continue; |
| 367 | 370 | |
| 371 | const ArchTag = @TagType(builtin.Arch); |
| 372 | if (test_target.disable_native and |
| 373 | test_target.target.getOs() == builtin.os and |
| 374 | ArchTag(test_target.target.getArch()) == ArchTag(builtin.arch)) |
| 375 | { |
| 376 | continue; |
| 377 | } |
| 378 | |
| 368 | 379 | const want_this_mode = for (modes) |m| { |
| 369 | 380 | if (m == test_target.mode) break true; |
| 370 | 381 | } else false; |