From ec33e6414cc39a34d2c49f6efdf933ca21a0136c Mon Sep 17 00:00:00 2001 From: clubby789 Date: Thu, 25 May 2023 23:32:07 +0000 Subject: [PATCH] bootstrap: Make `clean` respect `dry-run` --- src/bootstrap/clean.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/clean.rs b/src/bootstrap/clean.rs index 0d9fd56b03814..c1d867a0bd14b 100644 --- a/src/bootstrap/clean.rs +++ b/src/bootstrap/clean.rs @@ -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 {