Skip to content

Commit

Permalink
Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS
Browse files Browse the repository at this point in the history
We mistakenly pass cxxflags from the configuration to LLVM build as
CMAKE_C_FLAGS.
  • Loading branch information
petrhosek committed Jun 9, 2019
1 parent 8b36867 commit 715578e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/native.rs
Expand Up @@ -416,7 +416,7 @@ fn configure_cmake(builder: &Builder<'_>,

cfg.build_arg("-j").build_arg(builder.jobs().to_string());
let mut cflags = builder.cflags(target, GitRepo::Llvm).join(" ");
if let Some(ref s) = builder.config.llvm_cxxflags {
if let Some(ref s) = builder.config.llvm_cflags {
cflags.push_str(&format!(" {}", s));
}
cfg.define("CMAKE_C_FLAGS", cflags);
Expand Down

0 comments on commit 715578e

Please sign in to comment.