Skip to content

Commit

Permalink
rustbuild: Clean out tmp directory on make clean
Browse files Browse the repository at this point in the history
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
alexcrichton committed Jun 30, 2016
1 parent c2b56fb commit 1e48a72
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 1e48a72

Please sign in to comment.