summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-02-22 12:37:46 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2020-02-22 12:37:46 -0500
commit8009c2071179ee3490f244b91a49202728efe403 (patch)
treea583ab1713d5495f7232778d86d6bb22ecd138c9 /lib
parent85a9743f135b3687281efc5881baaab8ca2a8e09 (diff)
downloadnixpkgs-8009c2071179ee3490f244b91a49202728efe403.tar
nixpkgs-8009c2071179ee3490f244b91a49202728efe403.tar.gz
nixpkgs-8009c2071179ee3490f244b91a49202728efe403.tar.bz2
nixpkgs-8009c2071179ee3490f244b91a49202728efe403.tar.lz
nixpkgs-8009c2071179ee3490f244b91a49202728efe403.tar.xz
nixpkgs-8009c2071179ee3490f244b91a49202728efe403.tar.zst
nixpkgs-8009c2071179ee3490f244b91a49202728efe403.zip
lib/systems: Assume newlib when no kernel and no libc is provided
newlib is the default for most tools when no kernel is provided. Other
exist, but this seems like a safe default.
Diffstat (limited to 'lib')
-rw-r--r--lib/systems/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix
index 026117cc34f..045a40bd5b4 100644
--- a/lib/systems/default.nix
+++ b/lib/systems/default.nix
@@ -36,9 +36,8 @@ rec {
         else if final.isUClibc              then "uclibc"
         else if final.isAndroid             then "bionic"
         else if final.isLinux /* default */ then "glibc"
-        else if final.isMsp430              then "newlib"
-        else if final.isVc4                 then "newlib"
         else if final.isAvr                 then "avrlibc"
+        else if final.isNone                then "newlib"
         else if final.isNetBSD              then "nblibc"
         # TODO(@Ericson2314) think more about other operating systems
         else                                     "native/impure";