File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -310,17 +310,21 @@ version = "0.0.0"
310
310
path = "lib.rs"
311
311
"# ) . unwrap ( ) ;
312
312
File :: create ( dir. join ( "lib.rs" ) ) . unwrap ( ) ;
313
- // Run xargo.
313
+ // Prepare xargo invocation .
314
314
let target = get_arg_flag_value ( "--target" ) ;
315
315
let print_env = !ask_user && has_arg_flag ( "--env" ) ; // whether we just print the necessary environment variable
316
316
let mut command = xargo ( ) ;
317
- command. arg ( "build" ) . arg ( "-q" )
318
- . current_dir ( & dir)
319
- . env ( "RUSTFLAGS" , miri:: miri_default_args ( ) . join ( " " ) )
320
- . env ( "XARGO_HOME" , dir. to_str ( ) . unwrap ( ) ) ;
317
+ command. arg ( "build" ) . arg ( "-q" ) ;
318
+ command. current_dir ( & dir) ;
319
+ command. env ( "RUSTFLAGS" , miri:: miri_default_args ( ) . join ( " " ) ) ;
320
+ command. env ( "XARGO_HOME" , dir. to_str ( ) . unwrap ( ) ) ;
321
+ // In bootstrap, make sure we don't get debug assertons into our libstd.
322
+ command. env ( "RUSTC_DEBUG_ASSERTIONS" , "false" ) ;
323
+ // Handle target flag.
321
324
if let Some ( ref target) = target {
322
325
command. arg ( "--target" ) . arg ( & target) ;
323
326
}
327
+ // Finally run it!
324
328
if !command. status ( )
325
329
. expect ( "failed to run xargo" )
326
330
. success ( )
You can’t perform that action at this time.
0 commit comments