compiler: Link libc by default when targeting NetBSD.

We don't yet have a direct syscall layer in std.os.netbsd.
This commit is contained in:
Alex Rønne Petersen 2025-05-13 01:46:37 +02:00
parent d29ba75c84
commit c5e669ff76
No known key found for this signature in database

View File

@ -339,6 +339,7 @@ pub fn resolve(options: Options) ResolveError!Config {
// These targets don't require libc, but we don't yet have a syscall layer for them,
// so we default to linking libc for now.
.freebsd,
.netbsd,
=> break :b true,
else => {},
}