about summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorTommy Ip <hkmp7tommy@gmail.com>2017-09-20 18:14:19 +0100
committerTommy Ip <hkmp7tommy@gmail.com>2017-09-20 18:14:19 +0100
commit2c78bb49fde79e93b110a979f1f11b3f1221e1ef (patch)
tree9d9f834f58df8d4262b051412942bc6f60c992e0 /src/bootstrap/lib.rs
parent4cdb36262b93390c8733a1ce44665619d9348981 (diff)
downloadrust-2c78bb49fde79e93b110a979f1f11b3f1221e1ef.tar.gz
rust-2c78bb49fde79e93b110a979f1f11b3f1221e1ef.zip
Add --all flag to ./x.py clean
This flag removes all build artifacts, including the LLVM build
directory.
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 06c7c4c2faf..0876786f9a5 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");