Skip to content

Commit c5e669f

Browse files
committed
compiler: Link libc by default when targeting NetBSD.
We don't yet have a direct syscall layer in std.os.netbsd.
1 parent d29ba75 commit c5e669f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Compilation/Config.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ pub fn resolve(options: Options) ResolveError!Config {
339339
// These targets don't require libc, but we don't yet have a syscall layer for them,
340340
// so we default to linking libc for now.
341341
.freebsd,
342+
.netbsd,
342343
=> break :b true,
343344
else => {},
344345
}

0 commit comments

Comments
 (0)