Skip to content

Commit

Permalink
rustbuild: Clean more as part of make clean
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Apr 16, 2016
1 parent 6fa61b8 commit 4d1e375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap/build/clean.rs
Expand Up @@ -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)));
}
}
}
Expand Down

0 comments on commit 4d1e375

Please sign in to comment.