From 37887fce118cf568bb6d3956c76a868bdd098023 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 7 Feb 2017 11:39:42 -0800 Subject: [PATCH] rustbuild: Clean build/dist on `make clean` Prevents stale artifacts from sticking around by accident! --- src/bootstrap/clean.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/clean.rs b/src/bootstrap/clean.rs index e7655458aed8a..a66ed46fe464f 100644 --- a/src/bootstrap/clean.rs +++ b/src/bootstrap/clean.rs @@ -24,6 +24,7 @@ use Build; pub fn clean(build: &Build) { rm_rf(build, "tmp".as_ref()); rm_rf(build, &build.out.join("tmp")); + rm_rf(build, &build.out.join("dist")); for host in build.config.host.iter() { let entries = match build.out.join(host).read_dir() {