@@ -35,6 +35,7 @@ const RECOGNIZED_TRIPLES: &[&str] = &[
35
35
"aarch64-apple-ios" ,
36
36
"aarch64-pc-windows-msvc" ,
37
37
"aarch64-unknown-linux-gnu" ,
38
+ "aarch64-unknown-linux-musl" ,
38
39
"armv7-unknown-linux-gnueabi" ,
39
40
"armv7-unknown-linux-gnueabihf" ,
40
41
"arm64-apple-tvos" ,
@@ -157,6 +158,10 @@ static GLIBC_MAX_VERSION_BY_TRIPLE: Lazy<HashMap<&'static str, version_compare::
157
158
"aarch64-unknown-linux-gnu" ,
158
159
version_compare:: Version :: from ( "2.17" ) . unwrap ( ) ,
159
160
) ;
161
+ versions. insert (
162
+ "aarch64-unknown-linux-musl" ,
163
+ version_compare:: Version :: from ( "1" ) . unwrap ( ) ,
164
+ ) ;
160
165
versions. insert (
161
166
"armv7-unknown-linux-gnueabi" ,
162
167
version_compare:: Version :: from ( "2.17" ) . unwrap ( ) ,
@@ -549,6 +554,7 @@ static PLATFORM_TAG_BY_TRIPLE: Lazy<HashMap<&'static str, &'static str>> = Lazy:
549
554
( "aarch64-apple-ios" , "iOS-aarch64" ) ,
550
555
( "aarch64-pc-windows-msvc" , "win-arm64" ) ,
551
556
( "aarch64-unknown-linux-gnu" , "linux-aarch64" ) ,
557
+ ( "aarch64-unknown-linux-musl" , "linux-aarch64" ) ,
552
558
( "armv7-unknown-linux-gnueabi" , "linux-arm" ) ,
553
559
( "armv7-unknown-linux-gnueabihf" , "linux-arm" ) ,
554
560
( "i686-pc-windows-msvc" , "win32" ) ,
@@ -949,6 +955,7 @@ fn validate_elf<Elf: FileHeader<Endian = Endianness>>(
949
955
950
956
let wanted_cpu_type = match target_triple {
951
957
"aarch64-unknown-linux-gnu" => object:: elf:: EM_AARCH64 ,
958
+ "aarch64-unknown-linux-musl" => object:: elf:: EM_AARCH64 ,
952
959
"armv7-unknown-linux-gnueabi" => object:: elf:: EM_ARM ,
953
960
"armv7-unknown-linux-gnueabihf" => object:: elf:: EM_ARM ,
954
961
"i686-unknown-linux-gnu" => object:: elf:: EM_386 ,
0 commit comments