From 4d1e375654d119b7f3204b32c377e5c6a03230c7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 16 Apr 2016 14:56:37 -0700 Subject: [PATCH] rustbuild: Clean more as part of `make clean` Clean out old documentation as well as the new test/tools directories. Should prevent a problem that happened this morning where a PR bounced and then it left docs with "broken links" so all future PRs bounced. --- src/bootstrap/build/clean.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootstrap/build/clean.rs b/src/bootstrap/build/clean.rs index 8f78fed001cf1..796d70bdecf0c 100644 --- a/src/bootstrap/build/clean.rs +++ b/src/bootstrap/build/clean.rs @@ -19,11 +19,14 @@ pub fn clean(build: &Build) { let out = build.out.join(host); rm_rf(build, &out.join("compiler-rt")); + rm_rf(build, &out.join("doc")); for stage in 0..4 { rm_rf(build, &out.join(format!("stage{}", stage))); rm_rf(build, &out.join(format!("stage{}-std", stage))); rm_rf(build, &out.join(format!("stage{}-rustc", stage))); + rm_rf(build, &out.join(format!("stage{}-test", stage))); + rm_rf(build, &out.join(format!("stage{}-tools", stage))); } } }