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
View File
@@ -33,6 +33,9 @@ rec {
Windows = { kernel = kernels.windows; };
Cygwin = { kernel = kernels.windows; abi = abis.cygnus; };
MinGW = { kernel = kernels.windows; abi = abis.gnu; };
Musl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ];
Glibc = with abis; map (a: { abi = a; }) [ gnu gnueabi gnueabihf ];
};
matchAnyAttrs = patterns: