From afbbb74fecb3945336520d1930bd52bed9ed0819 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 19 Mar 2016 14:59:51 -0500 Subject: [PATCH] disable llvm assertions on ARM compilers workaround for #32360 --- src/bootstrap/build/native.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/build/native.rs b/src/bootstrap/build/native.rs index b3bd6b92299..00661998025 100644 --- a/src/bootstrap/build/native.rs +++ b/src/bootstrap/build/native.rs @@ -39,7 +39,12 @@ pub fn llvm(build: &Build, target: &str) { let _ = fs::remove_dir_all(&dst.join("build")); t!(fs::create_dir_all(&dst.join("build"))); - let assertions = if build.config.llvm_assertions {"ON"} else {"OFF"}; + let mut assertions = if build.config.llvm_assertions {"ON"} else {"OFF"}; + + // Disable LLVM assertions on ARM compilers until #32360 is fixed + if target.contains("arm") && target.contains("gnu") { + assertions = "OFF"; + } // http://llvm.org/docs/CMake.html let mut cfg = cmake::Config::new(build.src.join("src/llvm"));