lib/systems: Add uClibc just like MUSL

This commit is contained in:
John Ericson 2018-05-09 23:33:31 -04:00
parent 3fa0ba9177
commit e42a7a5c0b
3 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ rec {
/**/ if final.isDarwin then "libSystem" /**/ if final.isDarwin then "libSystem"
else if final.isMinGW then "msvcrt" else if final.isMinGW then "msvcrt"
else if final.isMusl then "musl" else if final.isMusl then "musl"
else if final.isUClibc then "uclibc"
else if final.isAndroid then "bionic" else if final.isAndroid then "bionic"
else if final.isLinux /* default */ then "glibc" else if final.isLinux /* default */ then "glibc"
# TODO(@Ericson2314) think more about other operating systems # TODO(@Ericson2314) think more about other operating systems

View File

@ -36,6 +36,7 @@ rec {
isAndroid = [ { abi = abis.android; } { abi = abis.androideabi; } ]; isAndroid = [ { abi = abis.android; } { abi = abis.androideabi; } ];
isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ]; isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ];
isUClibc = with abis; map (a: { abi = a; }) [ uclibc uclibceabi uclibceabihf ];
isKexecable = map (family: { kernel = kernels.linux; cpu.family = family; }) isKexecable = map (family: { kernel = kernels.linux; cpu.family = family; })
[ "x86" "arm" "aarch64" "mips" ]; [ "x86" "arm" "aarch64" "mips" ];

View File

@ -193,6 +193,9 @@ rec {
musleabi = {}; musleabi = {};
musleabihf = {}; musleabihf = {};
musl = {}; musl = {};
uclibceabihf = {};
uclibceabi = {};
uclibc = {};
unknown = {}; unknown = {};
}; };