From 7cae6b8fa78a75b62c5e2a69afda95b3c3824a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 29 May 2025 15:32:56 +0200 Subject: [PATCH] test: Skip *-windows-msvc + libc module tests on non-Windows. We can't provide MSVC libc when cross-compiling (yet?). --- test/tests.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/tests.zig b/test/tests.zig index 88b20e7cb5..4447577dff 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -1772,6 +1772,10 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { if (options.skip_libc and test_target.link_libc == true) continue; + // We can't provide MSVC libc when cross-compiling. + if (target.abi == .msvc and test_target.link_libc == true and builtin.os.tag != .windows) + continue; + if (options.skip_single_threaded and test_target.single_threaded == true) continue;