Skip to content

Commit

Permalink
Rollup merge of rust-lang#117723 - onur-ozkan:keep-bootstrap-on-x-cle…
Browse files Browse the repository at this point in the history
…an, 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 #rust-lang#117653 (comment)
  • Loading branch information
TaKO8Ki authored Nov 9, 2023
2 parents a2ea76e + de0458a commit 27b0fcc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bootstrap/src/core/build_steps/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 27b0fcc

Please sign in to comment.