]> git.lizzy.rs Git - rust.git/commitdiff
rustbuild: Clean more as part of `make clean`
authorAlex Crichton <alex@alexcrichton.com>
Sat, 16 Apr 2016 21:56:37 +0000 (14:56 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 16 Apr 2016 21:56:37 +0000 (14:56 -0700)
Clean out old documentation as well as the new test/tools directories. Should
prevent a problem that happened this morning where a PR bounced and then it left
docs with "broken links" so all future PRs bounced.

src/bootstrap/build/clean.rs

index 8f78fed001cf1316b9d668c339ae906c2df958ae..796d70bdecf0cdcb6c9afceeeb08fa28a31e19e7 100644 (file)
@@ -19,11 +19,14 @@ pub fn clean(build: &Build) {
         let out = build.out.join(host);
 
         rm_rf(build, &out.join("compiler-rt"));
+        rm_rf(build, &out.join("doc"));
 
         for stage in 0..4 {
             rm_rf(build, &out.join(format!("stage{}", stage)));
             rm_rf(build, &out.join(format!("stage{}-std", stage)));
             rm_rf(build, &out.join(format!("stage{}-rustc", stage)));
+            rm_rf(build, &out.join(format!("stage{}-test", stage)));
+            rm_rf(build, &out.join(format!("stage{}-tools", stage)));
         }
     }
 }