Skip to content

Commit

Permalink
disable llvm assertions on ARM compilers
Browse files Browse the repository at this point in the history
workaround for #32360
  • Loading branch information
Jorge Aparicio committed Mar 19, 2016
1 parent 151be09 commit afbbb74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bootstrap/build/native.rs
Expand Up @@ -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"));
Expand Down

0 comments on commit afbbb74

Please sign in to comment.