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
This commit is contained in:
Matthias Krüger 2023-06-03 20:38:11 +02:00 committed by GitHub
commit 95b909a119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {