Skip to content

Commit

Permalink
Auto merge of #34577 - alexcrichton:clean-more-yet-again, r=brson
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors authored Jul 1, 2016
2 parents 85c31af + 1e48a72 commit 375fa6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap/build/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 375fa6e

Please sign in to comment.