@@ -32,6 +32,7 @@ enum Command {
3232 Prepare ,
3333 Build ,
3434 Test ,
35+ AbiCafe ,
3536 Bench ,
3637}
3738
@@ -61,6 +62,7 @@ pub fn main() {
6162 Some ( "prepare" ) => Command :: Prepare ,
6263 Some ( "build" ) => Command :: Build ,
6364 Some ( "test" ) => Command :: Test ,
65+ Some ( "abi-cafe" ) => Command :: AbiCafe ,
6466 Some ( "bench" ) => Command :: Bench ,
6567 Some ( flag) if flag. starts_with ( '-' ) => arg_error ! ( "Expected command found flag {}" , flag) ,
6668 Some ( command) => arg_error ! ( "Unknown command {}" , command) ,
@@ -156,19 +158,13 @@ pub fn main() {
156158 & bootstrap_host_compiler,
157159 target_triple. clone ( ) ,
158160 ) ;
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 ) ;
171166 }
167+ abi_cafe:: run ( channel, sysroot_kind, & dirs, & cg_clif_dylib, & bootstrap_host_compiler) ;
172168 }
173169 Command :: Build => {
174170 build_sysroot:: build_sysroot (
0 commit comments