File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,16 @@ fn main() {
4646/// Run `cargo build` with the provided additional arguments, collecting the list of created
4747/// libraries.
4848fn exec_cargo_with_args ( args : & [ & str ] ) -> Vec < PathBuf > {
49- let mut cmd = Command :: new ( "cargo" )
50- . arg ( "build" )
49+ let mut cmd = Command :: new ( "cargo" ) ;
50+ cmd . arg ( "build" )
5151 . arg ( "--message-format=json" )
5252 . args ( args)
53- . stdout ( Stdio :: piped ( ) )
54- . spawn ( )
55- . expect ( "failed to launch Cargo" ) ;
53+ . stdout ( Stdio :: piped ( ) ) ;
5654
57- let stdout = cmd. stdout . take ( ) . unwrap ( ) ;
55+ println ! ( "running: {cmd:?}" ) ;
56+ let mut child = cmd. spawn ( ) . expect ( "failed to launch Cargo" ) ;
57+
58+ let stdout = child. stdout . take ( ) . unwrap ( ) ;
5859 let reader = BufReader :: new ( stdout) ;
5960 let mut check_files = Vec :: new ( ) ;
6061
@@ -84,7 +85,7 @@ fn exec_cargo_with_args(args: &[&str]) -> Vec<PathBuf> {
8485 }
8586 }
8687
87- assert ! ( cmd . wait( ) . expect( "failed to wait on Cargo" ) . success( ) ) ;
88+ assert ! ( child . wait( ) . expect( "failed to wait on Cargo" ) . success( ) ) ;
8889
8990 assert ! ( !check_files. is_empty( ) , "no compiler_builtins rlibs found" ) ;
9091 println ! ( "Collected the following rlibs to check: {check_files:#?}" ) ;
You can’t perform that action at this time.
0 commit comments