Skip to content

Commit

Permalink
Rollup merge of #111969 - clubby789:clean-dry-run, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
bootstrap: Make `clean` respect `dry-run`

I noticed `clean_default` was getting run twice as the `DryRun::SelfCheck` flag is ignored
  • Loading branch information
matthiaskrgr authored Jun 3, 2023
2 parents bdf9ed4 + ec33e64 commit 95b909a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ clean_crate_tree! {
}

fn clean_default(build: &Build, all: bool) {
if build.config.dry_run() {
return;
}

rm_rf("tmp".as_ref());

if all {
Expand Down

0 comments on commit 95b909a

Please sign in to comment.