]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #39622 - alexcrichton:clean-dist, r=brson
authorCorey Farwell <coreyf@rwell.org>
Wed, 8 Feb 2017 15:19:57 +0000 (10:19 -0500)
committerGitHub <noreply@github.com>
Wed, 8 Feb 2017 15:19:57 +0000 (10:19 -0500)
rustbuild: Clean build/dist on `make clean`

Prevents stale artifacts from sticking around by accident!

src/bootstrap/clean.rs

index e7655458aed8a71128437a1ff921b5bfa39a3417..a66ed46fe464f5bb1185e4a25a4fb4d2a50b4ba0 100644 (file)
@@ -24,6 +24,7 @@
 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() {