diff options
| author | Maya Rashish <maya@NetBSD.org> | 2019-02-16 12:29:12 +0200 |
|---|---|---|
| committer | Maya Rashish <maya@NetBSD.org> | 2019-02-17 09:17:34 +0200 |
| commit | bc10382ec1b87da16943907ba2d0fbd267af07f0 (patch) | |
| tree | 1bc117549f49266c2d1244d0f1cc7220e201b86b /src/codegen.cpp | |
| parent | ba56f365c813440b79c1710c6a8b0fd591883e13 (diff) | |
| download | zig-bc10382ec1b87da16943907ba2d0fbd267af07f0.tar.gz zig-bc10382ec1b87da16943907ba2d0fbd267af07f0.zip | |
Add NetBSD support
Mostly picking the same paths as FreeBSD.
We need a little special handling for crt files, as netbsd uses its
own (and not GCC's) for those, with slightly different names.
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index d2b2836b0c..d54d06f3b5 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -184,7 +184,8 @@ CodeGen *codegen_create(Buf *root_src_path, const ZigTarget *target, OutType out // On Darwin/MacOS/iOS, we always link libSystem which contains libc. if (g->zig_target.os == OsMacOSX || g->zig_target.os == OsIOS || - g->zig_target.os == OsFreeBSD) + g->zig_target.os == OsFreeBSD || + g->zig_target.os == OsNetBSD) { g->libc_link_lib = create_link_lib(buf_create_from_str("c")); g->link_libs_list.append(g->libc_link_lib); |
