about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2023-11-09 11:36:53 +0900
committerGitHub <noreply@github.com>2023-11-09 11:36:53 +0900
commite603f4491caffc0ef0294b9a25d5d5ca0c1f469d (patch)
tree35a4603acf22f2f1876f14d912b5976ad56fe7d9 /src/bootstrap
parent6533c62ce74ff6b32a93751bc76481a92b5cddf5 (diff)
parentde0458af970adfd768b18bac7cb5a377f837378c (diff)
downloadrust-e603f4491caffc0ef0294b9a25d5d5ca0c1f469d.tar.gz
rust-e603f4491caffc0ef0294b9a25d5d5ca0c1f469d.zip
Rollup merge of #117723 - onur-ozkan:keep-bootstrap-on-x-clean, r=albertlarsan68
speed up `x clean`

Since `x clean` runs with bootstrap, we can speed up this process by avoiding the cleaning of bootstrap artifacts, as they are not necessarily needed to be cleaned.

ref #https://github.com/rust-lang/rust/issues/117653#issuecomment-1802482768
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/src/core/build_steps/clean.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/clean.rs b/src/bootstrap/src/core/build_steps/clean.rs
index 679770ce0ec..1f0ca2ac5c8 100644
--- a/src/bootstrap/src/core/build_steps/clean.rs
+++ b/src/bootstrap/src/core/build_steps/clean.rs
@@ -139,7 +139,6 @@ fn clean_specific_stage(build: &Build, stage: u32) {
 fn clean_default(build: &Build) {
     rm_rf(&build.out.join("tmp"));
     rm_rf(&build.out.join("dist"));
-    rm_rf(&build.out.join("bootstrap"));
     rm_rf(&build.out.join("rustfmt.stamp"));
 
     for host in &build.hosts {