From 1e48a72edc26ab266752b14bd52898584a4e1bd0 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 30 Jun 2016 09:01:27 -0700 Subject: [PATCH] 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. --- src/bootstrap/build/clean.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootstrap/build/clean.rs b/src/bootstrap/build/clean.rs index 1d407c94132..91334bdb91e 100644 --- a/src/bootstrap/build/clean.rs +++ b/src/bootstrap/build/clean.rs @@ -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);