Allow cleaning llvm build dir to fail

It may not exist, so we don't want to spuriously generate an error.
This commit is contained in:
Alex Crichton 2017-03-10 13:02:30 -08:00 committed by Vadim Petrochenkov
parent 362aa9a317
commit 4cda4d67f1
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ pub fn llvm(build: &Build, target: &str) {
}
}
if build.config.llvm_clean_rebuild {
t!(fs::remove_dir_all(&out_dir));
drop(fs::remove_dir_all(&out_dir));
}
println!("Building LLVM for {}", target);