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