Rollup merge of #39622 - alexcrichton:clean-dist, r=brson

rustbuild: Clean build/dist on `make clean`

Prevents stale artifacts from sticking around by accident!
This commit is contained in:
Corey Farwell 2017-02-08 10:19:57 -05:00 committed by GitHub
commit e15bd3177e

View File

@ -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() {