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