Skip to content

Commit

Permalink
Print "Checking/Building ..." message even when --dry-run is passed
Browse files Browse the repository at this point in the history
This makes it a lot easier to understand what commands will be run without
having to parse the `-vv` output, which isn't meant to be user facing.
  • Loading branch information
jyn514 committed Nov 12, 2022
1 parent 34972c5 commit 2437888
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,10 +1019,12 @@ impl Build {
}

fn info(&self, msg: &str) {
if self.config.dry_run() {
return;
match self.config.dry_run {
DryRun::SelfCheck => return,
DryRun::Disabled | DryRun::UserSelected => {
println!("{}", msg);
}
}
println!("{}", msg);
}

/// Returns the number of parallel jobs that have been configured for this
Expand Down

0 comments on commit 2437888

Please sign in to comment.