Skip to content

Commit 4d1e375

Browse files
committed
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.
1 parent 6fa61b8 commit 4d1e375

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/build/clean.rs

+3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ pub fn clean(build: &Build) {
1919
let out = build.out.join(host);
2020

2121
rm_rf(build, &out.join("compiler-rt"));
22+
rm_rf(build, &out.join("doc"));
2223

2324
for stage in 0..4 {
2425
rm_rf(build, &out.join(format!("stage{}", stage)));
2526
rm_rf(build, &out.join(format!("stage{}-std", stage)));
2627
rm_rf(build, &out.join(format!("stage{}-rustc", stage)));
28+
rm_rf(build, &out.join(format!("stage{}-test", stage)));
29+
rm_rf(build, &out.join(format!("stage{}-tools", stage)));
2730
}
2831
}
2932
}

0 commit comments

Comments
 (0)