std.Target: don't claim that OpenBSD requires libc

https://codeberg.org/ziglang/zig/issues/30982
This commit is contained in:
Alex Rønne Petersen
2026-03-26 01:05:12 +01:00
parent e4a977f9e4
commit cef16b5130
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -2379,7 +2379,7 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
// These targets don't strictly require libc, but we don't yet have a
// syscall layer for them, so the compiler links libc by default. They
// therefore get the same treatment here.
if (test_target.link_libc == null and (target.os.tag == .freebsd or target.os.tag == .netbsd)) continue;
if (test_target.link_libc == null and (target.os.tag == .freebsd or target.os.tag == .netbsd or target.os.tag == .openbsd)) continue;
if (!options.test_extra_targets and test_target.extra_target) continue;