Skip to content

Commit 715578e

Browse files
committed
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.
1 parent 8b36867 commit 715578e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ fn configure_cmake(builder: &Builder<'_>,
416416

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

0 commit comments

Comments
 (0)