summaryrefslogtreecommitdiffstats
path: root/src/bootstrap/clean.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap/clean.rs')
-rw-r--r--src/bootstrap/clean.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/clean.rs b/src/bootstrap/clean.rs
index 0d9fd56b0..c1d867a0b 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 {