Skip to content

Commit 95b909a

Browse files
authored
Rollup merge of #111969 - clubby789:clean-dry-run, r=Mark-Simulacrum
bootstrap: Make `clean` respect `dry-run` I noticed `clean_default` was getting run twice as the `DryRun::SelfCheck` flag is ignored
2 parents bdf9ed4 + ec33e64 commit 95b909a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/clean.rs

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ clean_crate_tree! {
8585
}
8686

8787
fn clean_default(build: &Build, all: bool) {
88+
if build.config.dry_run() {
89+
return;
90+
}
91+
8892
rm_rf("tmp".as_ref());
8993

9094
if all {

0 commit comments

Comments
 (0)