zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 234693bcbba6f55ff6e975ddbedf0fad4dfaa8f1 (tree)
parent 5ea973dc39cc1b3a9826ef94affb33e41c02c733
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  6 Nov 2023 16:02:27 -0700

tests: skip native CPU std tests on Windows

See tracking issue #17902

Diffstat:
Mtest/tests.zig | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/test/tests.zig b/test/tests.zig @@ -1095,6 +1095,16 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { test_target.use_llvm == false and mem.eql(u8, options.name, "std")) continue; + if (test_target.target.getCpuArch() == .x86_64 and + test_target.target.getOsTag() == .windows and + test_target.target.cpu_arch == null and + test_target.optimize_mode != .Debug and + mem.eql(u8, options.name, "std")) + { + // https://github.com/ziglang/zig/issues/17902 + continue; + } + const want_this_mode = for (options.optimize_modes) |m| { if (m == test_target.optimize_mode) break true; } else false;