Skip to content

Commit

Permalink
rustbuild: Clean build/dist on make clean
Browse files Browse the repository at this point in the history
Prevents stale artifacts from sticking around by accident!
  • Loading branch information
alexcrichton committed Feb 7, 2017
1 parent 324b175 commit 37887fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 37887fc

Please sign in to comment.