mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
test: handle -Dskip-libc correctly for module tests
For a test target with link_libc = null, we need to skip it if we would implicitly link libc because the target requires it or because we don't yet have a syscall layer for it.
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user