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.
This commit is contained in:
parent
c2b56fb7a0
commit
1e48a72edc
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,9 @@ use std::path::Path;
|
|||
use build::Build;
|
||||
|
||||
pub fn clean(build: &Build) {
|
||||
rm_rf(build, "tmp".as_ref());
|
||||
rm_rf(build, &build.out.join("tmp"));
|
||||
|
||||
for host in build.config.host.iter() {
|
||||
|
||||
let out = build.out.join(host);
|
||||
|
|
Loading…
Add table
Reference in a new issue