Skip to content

Commit 1e48a72

Browse files
committed
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.
1 parent c2b56fb commit 1e48a72

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
@@ -21,6 +21,9 @@ use std::path::Path;
2121
use build::Build;
2222

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

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

0 commit comments

Comments
 (0)