about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-09-29 17:58:54 -0600
committerGitHub <noreply@github.com>2017-09-29 17:58:54 -0600
commit6bc8ca06c15bab082a00e62a2bc8805741871d7e (patch)
tree7149ef9ebe27900163a50121020b186dc30e9158 /src/bootstrap/lib.rs
parent20f892f549a9309d61c76a78cf948918507c4e39 (diff)
parent09d90e52682641e5d6d0a70e42011fd24ced1434 (diff)
downloadrust-6bc8ca06c15bab082a00e62a2bc8805741871d7e.tar.gz
rust-6bc8ca06c15bab082a00e62a2bc8805741871d7e.zip
Rollup merge of #44694 - tommyip:make_clean, r=Mark-Simulacrum
Add --all flag to ./x.py clean

This make `clean` removes the LLVM and download cache directory as well.

Fixes #44214.

r? @Mark-Simulacrum
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index 83aa08366df..2d721f45578 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -345,8 +345,8 @@ impl Build {
             job::setup(self);
         }
 
-        if let Subcommand::Clean = self.config.cmd {
-            return clean::clean(self);
+        if let Subcommand::Clean { all } = self.config.cmd {
+            return clean::clean(self, all);
         }
 
         self.verbose("finding compilers");