diff --git a/test/tests.zig b/test/tests.zig index fea928652d76472e08735494be33a6a8ad4e77b5..9887b0f024894db00f014ccbf7de389dc1b31520 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -2531,7 +2531,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step { } else continue; } - if (options.skip_libc and test_target.link_libc == true) + if (options.skip_libc and (test_target.link_libc == true or std.os.targetRequiresLibC(target))) continue; // We can't provide MSVC libc when cross-compiling.