Commit 7cae6b8fa7

Alex Rønne Petersen <alex@alexrp.com>
2025-05-29 15:32:56
test: Skip *-windows-msvc + libc module tests on non-Windows.
We can't provide MSVC libc when cross-compiling (yet?).
1 parent c8ea81b
Changed files (1)
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;