@@ -32,6 +32,7 @@ enum Command {
32
32
Prepare ,
33
33
Build ,
34
34
Test ,
35
+ AbiCafe ,
35
36
Bench ,
36
37
}
37
38
@@ -61,6 +62,7 @@ pub fn main() {
61
62
Some ( "prepare" ) => Command :: Prepare ,
62
63
Some ( "build" ) => Command :: Build ,
63
64
Some ( "test" ) => Command :: Test ,
65
+ Some ( "abi-cafe" ) => Command :: AbiCafe ,
64
66
Some ( "bench" ) => Command :: Bench ,
65
67
Some ( flag) if flag. starts_with ( '-' ) => arg_error ! ( "Expected command found flag {}" , flag) ,
66
68
Some ( command) => arg_error ! ( "Unknown command {}" , command) ,
@@ -156,19 +158,13 @@ pub fn main() {
156
158
& bootstrap_host_compiler,
157
159
target_triple. clone ( ) ,
158
160
) ;
159
-
160
- if bootstrap_host_compiler. triple == target_triple {
161
- abi_cafe:: run (
162
- channel,
163
- sysroot_kind,
164
- & dirs,
165
- & cg_clif_dylib,
166
- & bootstrap_host_compiler,
167
- ) ;
168
- } else {
169
- eprintln ! ( "[RUN] abi-cafe (skipped, cross-compilation not supported)" ) ;
170
- return ;
161
+ }
162
+ Command :: AbiCafe => {
163
+ if bootstrap_host_compiler. triple != target_triple {
164
+ eprintln ! ( "Abi-cafe doesn't support cross-compilation" ) ;
165
+ process:: exit ( 1 ) ;
171
166
}
167
+ abi_cafe:: run ( channel, sysroot_kind, & dirs, & cg_clif_dylib, & bootstrap_host_compiler) ;
172
168
}
173
169
Command :: Build => {
174
170
build_sysroot:: build_sysroot (
0 commit comments