lib/systems: musl, libc predicates

Note this doesn't actually provide musl support yet,
just improves our "system" code to understand
musl-based triples and non-glibc linux configurations.
This commit is contained in:
Will Dietz
2018-02-11 14:20:14 -06:00
parent 69779a5f7e
commit 2dfee94fe7
4 changed files with 20 additions and 7 deletions
+3 -1
View File
@@ -26,7 +26,9 @@ rec {
libc =
/**/ if final.isDarwin then "libSystem"
else if final.isMinGW then "msvcrt"
else if final.isLinux then "glibc"
else if final.isLinux && final.isGlibc then "glibc"
else if final.isLinux && final.isMusl then "musl"
else if final.isLinux /* default */ then "glibc"
# TODO(@Ericson2314) think more about other operating systems
else "native/impure";
extensions = {