@@ -36,7 +36,7 @@ use once_cell::sync::OnceCell;
3636
3737use crate :: builder:: Kind ;
3838use crate :: config:: { LlvmLibunwind , TargetSelection } ;
39- use crate :: util:: { dir_is_empty, exe, libdir, mtime, output, run , symlink_dir} ;
39+ use crate :: util:: { dir_is_empty, exe, libdir, mtime, output, symlink_dir} ;
4040
4141mod builder;
4242mod cache;
@@ -966,11 +966,7 @@ impl Build {
966966
967967 /// Runs a command, printing out nice contextual information if it fails.
968968 fn run ( & self , cmd : & mut Command ) {
969- if self . config . dry_run ( ) {
970- return ;
971- }
972- self . verbose ( & format ! ( "running: {cmd:?}" ) ) ;
973- run ( cmd, self . is_verbose ( ) )
969+ self . run_cmd ( cmd) ;
974970 }
975971
976972 /// Runs a command, printing out nice contextual information if it fails.
@@ -1021,15 +1017,15 @@ impl Build {
10211017 writeln ! (
10221018 message,
10231019 "\n \n command did not execute successfully: {:?}\n \
1024- expected success, got: {}\n \n ",
1020+ expected success, got: {}\n \n ",
10251021 command. command, output. status
10261022 )
10271023 . unwrap ( ) ;
10281024 if let OutputOnFailure :: Verbose = output_on_failure {
10291025 writeln ! (
10301026 message,
10311027 "stdout ----\n {}\n \
1032- stderr ----\n {}\n \n ",
1028+ stderr ----\n {}\n \n ",
10331029 String :: from_utf8_lossy( & output. stdout) ,
10341030 String :: from_utf8_lossy( & output. stderr)
10351031 )
0 commit comments