@@ -13,33 +13,34 @@ use common::Config;
13
13
14
14
/// Conversion table from triple OS name to Rust SYSNAME
15
15
const OS_TABLE : & ' static [ ( & ' static str , & ' static str ) ] = & [
16
- ( "mingw32" , "windows" ) ,
17
- ( "win32" , "windows" ) ,
18
- ( "windows" , "windows" ) ,
19
- ( "darwin" , "macos" ) ,
20
16
( "android" , "android" ) ,
21
- ( "linux" , "linux" ) ,
22
- ( "freebsd" , "freebsd" ) ,
23
- ( "dragonfly" , "dragonfly" ) ,
24
17
( "bitrig" , "bitrig" ) ,
18
+ ( "darwin" , "macos" ) ,
19
+ ( "dragonfly" , "dragonfly" ) ,
20
+ ( "freebsd" , "freebsd" ) ,
21
+ ( "ios" , "ios" ) ,
22
+ ( "linux" , "linux" ) ,
23
+ ( "mingw32" , "windows" ) ,
25
24
( "openbsd" , "openbsd" ) ,
25
+ ( "win32" , "windows" ) ,
26
+ ( "windows" , "windows" ) ,
26
27
] ;
27
28
28
29
const ARCH_TABLE : & ' static [ ( & ' static str , & ' static str ) ] = & [
29
- ( "i386" , "x86" ) ,
30
- ( "i686" , "x86" ) ,
30
+ ( "aarch64" , "aarch64" ) ,
31
31
( "amd64" , "x86_64" ) ,
32
- ( "x86_64" , "x86_64" ) ,
33
- ( "sparc" , "sparc" ) ,
34
- ( "powerpc" , "powerpc" ) ,
35
- ( "arm64" , "aarch64" ) ,
36
32
( "arm" , "arm" ) ,
37
- ( "aarch64" , "aarch64" ) ,
33
+ ( "arm64" , "aarch64" ) ,
34
+ ( "hexagon" , "hexagon" ) ,
35
+ ( "i386" , "x86" ) ,
36
+ ( "i686" , "x86" ) ,
38
37
( "mips" , "mips" ) ,
39
- ( "xcore" , "xcore" ) ,
40
38
( "msp430" , "msp430" ) ,
41
- ( "hexagon " , "hexagon " ) ,
39
+ ( "powerpc " , "powerpc " ) ,
42
40
( "s390x" , "systemz" ) ,
41
+ ( "sparc" , "sparc" ) ,
42
+ ( "x86_64" , "x86_64" ) ,
43
+ ( "xcore" , "xcore" ) ,
43
44
] ;
44
45
45
46
pub fn get_os ( triple : & str ) -> & ' static str {
0 commit comments