Skip to content

Commit 3a55e88

Browse files
committed
configure: set LLVM flags with a value
Rather than a boolean `--enable-cflags` etc., these options should reflect that they are for LLVM, and that they need a value. You would now use `./configure --llvm-cflags="..."`.
1 parent 0176a9e commit 3a55e88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/configure.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def v(*args):
6262
o("use-libcxx", "llvm.use-libcxx", "build LLVM with libc++")
6363
o("control-flow-guard", "rust.control-flow-guard", "Enable Control Flow Guard")
6464

65-
o("cflags", "llvm.cflags", "build LLVM with these extra compiler flags")
66-
o("cxxflags", "llvm.cxxflags", "build LLVM with these extra compiler flags")
67-
o("ldflags", "llvm.ldflags", "build LLVM with these extra linker flags")
65+
v("llvm-cflags", "llvm.cflags", "build LLVM with these extra compiler flags")
66+
v("llvm-cxxflags", "llvm.cxxflags", "build LLVM with these extra compiler flags")
67+
v("llvm-ldflags", "llvm.ldflags", "build LLVM with these extra linker flags")
6868

6969
o("llvm-libunwind", "rust.llvm-libunwind", "use LLVM libunwind")
7070

0 commit comments

Comments
 (0)