authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-14 14:42:37+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-17 12:10:37+02:00
log3e1e625814165d9d9282f3cd89bc117cf1b6d61c
treed11286d7449c2cb0b65e040d48ba06967f4fcd65
parent5464392e116b590cc9c2b662e967bc544b7d0a64
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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.

1 files changed, 1 insertions(+), 1 deletions(-)

test/tests.zig+1-1
......@@ -2531,7 +2531,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
25312531 } else continue;
25322532 }
25332533
2534 if (options.skip_libc and test_target.link_libc == true)
2534 if (options.skip_libc and (test_target.link_libc == true or std.os.targetRequiresLibC(target)))
25352535 continue;
25362536
25372537 // We can't provide MSVC libc when cross-compiling.