Skip to content

Commit 78812ca

Browse files
authored
Auto merge of #34577 - alexcrichton:clean-more-yet-again, r=alexcrichton
rustbuild: Clean out tmp directory on `make clean` Right now we generate error index information into this directory, but it's never cleaned out. This means that if a build *bounces* because of something in this directory it'll continue to cause all future builds to fail because the relevant files are never removed.
2 parents c2b56fb + 98adb2f commit 78812ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/build/clean.rs

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ use std::path::Path;
2121
use build::Build;
2222

2323
pub fn clean(build: &Build) {
24+
rm_rf(build, &build.out.join("tmp"));
25+
2426
for host in build.config.host.iter() {
2527

2628
let out = build.out.join(host);

0 commit comments

Comments
 (0)