Add --all flag to ./x.py clean

This flag removes all build artifacts, including the LLVM build
directory.
This commit is contained in:
Tommy Ip
2017-09-20 18:14:19 +01:00
parent 4cdb36262b
commit 2c78bb49fd
4 changed files with 31 additions and 20 deletions

View File

@@ -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");