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:
parent
8b36867093
commit
715578ea57
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue