@@ -36,7 +36,7 @@ use once_cell::sync::OnceCell;
36
36
37
37
use crate :: builder:: Kind ;
38
38
use 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} ;
40
40
41
41
mod builder;
42
42
mod cache;
@@ -966,11 +966,7 @@ impl Build {
966
966
967
967
/// Runs a command, printing out nice contextual information if it fails.
968
968
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) ;
974
970
}
975
971
976
972
/// Runs a command, printing out nice contextual information if it fails.
@@ -1021,15 +1017,15 @@ impl Build {
1021
1017
writeln ! (
1022
1018
message,
1023
1019
"\n \n command did not execute successfully: {:?}\n \
1024
- expected success, got: {}\n \n ",
1020
+ expected success, got: {}\n \n ",
1025
1021
command. command, output. status
1026
1022
)
1027
1023
. unwrap ( ) ;
1028
1024
if let OutputOnFailure :: Verbose = output_on_failure {
1029
1025
writeln ! (
1030
1026
message,
1031
1027
"stdout ----\n {}\n \
1032
- stderr ----\n {}\n \n ",
1028
+ stderr ----\n {}\n \n ",
1033
1029
String :: from_utf8_lossy( & output. stdout) ,
1034
1030
String :: from_utf8_lossy( & output. stderr)
1035
1031
)
0 commit comments