netbsd: add cross target

This commit is contained in:
Matthew Bauer
2018-07-28 12:29:02 -04:00
committed by Matthew Bauer
parent 1b2675213c
commit aab8c7ba43
9 changed files with 727 additions and 333 deletions

View File

@@ -33,6 +33,7 @@ rec {
else if final.isAndroid then "bionic"
else if final.isLinux /* default */ then "glibc"
else if final.isAvr then "avrlibc"
else if final.isNetBSD then "nblibc"
# TODO(@Ericson2314) think more about other operating systems
else "native/impure";
extensions = {

View File

@@ -212,4 +212,11 @@ rec {
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
platform = {};
};
# BSDs
amd64-netbsd = {
config = "x86_64-unknown-netbsd";
libc = "nblibc";
};
}