From 98adb2f445aa68e38a0ce662f7ec1b9108d4692d 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrap/build/clean.rs b/src/bootstrap/build/clean.rs index 1d407c9413235..1a40f8ecf3f30 100644 --- a/src/bootstrap/build/clean.rs +++ b/src/bootstrap/build/clean.rs @@ -21,6 +21,8 @@ use std::path::Path; use build::Build; pub fn clean(build: &Build) { + rm_rf(build, &build.out.join("tmp")); + for host in build.config.host.iter() { let out = build.out.join(host);