1
Fork 0

Pass cflags rather than cxxflags to LLVM as CMAKE_C_FLAGS

We mistakenly pass cxxflags from the configuration to LLVM build as
CMAKE_C_FLAGS.
This commit is contained in:
Petr Hosek 2019-06-09 16:53:46 -07:00
parent 8b36867093
commit 715578ea57

View file

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