Skip to content

Commit 7cae6b8

Browse files
committed
test: Skip *-windows-msvc + libc module tests on non-Windows.
We can't provide MSVC libc when cross-compiling (yet?).
1 parent c8ea81b commit 7cae6b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/tests.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,10 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
17721772
if (options.skip_libc and test_target.link_libc == true)
17731773
continue;
17741774

1775+
// We can't provide MSVC libc when cross-compiling.
1776+
if (target.abi == .msvc and test_target.link_libc == true and builtin.os.tag != .windows)
1777+
continue;
1778+
17751779
if (options.skip_single_threaded and test_target.single_threaded == true)
17761780
continue;
17771781

0 commit comments

Comments
 (0)