lib/systems: Add uClibc just like MUSL
This commit is contained in:
parent
3fa0ba9177
commit
e42a7a5c0b
@ -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
|
||||||
|
@ -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" ];
|
||||||
|
@ -193,6 +193,9 @@ rec {
|
|||||||
musleabi = {};
|
musleabi = {};
|
||||||
musleabihf = {};
|
musleabihf = {};
|
||||||
musl = {};
|
musl = {};
|
||||||
|
uclibceabihf = {};
|
||||||
|
uclibceabi = {};
|
||||||
|
uclibc = {};
|
||||||
|
|
||||||
unknown = {};
|
unknown = {};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user