diff options
author | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-07-28 12:29:02 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-02-26 15:55:47 -0500 |
commit | aab8c7ba437d240bd9780e09489e7358fee180e2 (patch) | |
tree | aa9f728c9750b5b86effef7830bf4a575fa53c16 /lib/systems | |
parent | 1b2675213cd3e59a0a71a60529cc110ac80dd4a3 (diff) |
netbsd: add cross target
Diffstat (limited to 'lib/systems')
-rw-r--r-- | lib/systems/default.nix | 1 | ||||
-rw-r--r-- | lib/systems/examples.nix | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 77f200952958..6e83546ae8e7 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -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 = { diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index ac1633a1a15f..0c9a3b4a63f5 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -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"; + }; } |