From 4cda4d67f169109bb0c09a2bd2abf5dfd2f41b0d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 10 Mar 2017 13:02:30 -0800 Subject: [PATCH] Allow cleaning llvm build dir to fail It may not exist, so we don't want to spuriously generate an error. --- src/bootstrap/native.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index a7754f2669ef..6cc1ca8d02ed 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -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);