Skip to content

Commit 2a63e44

Browse files
committed
configure: Move clang's libcpp out into flag
1 parent 73dac7e commit 2a63e44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

configure

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ opt optimize 1 "build optimized rust code"
401401
opt optimize-cxx 1 "build optimized C++ code"
402402
opt optimize-llvm 1 "build optimized LLVM"
403403
opt optimize-tests 1 "build tests with optimizations"
404+
opt libcpp 1 "build with clang's libcpp"
404405
opt llvm-assertions 1 "build LLVM with assertions"
405406
opt debug 1 "build with extra debug fun"
406407
opt ratchet-bench 0 "ratchet benchmarks"
@@ -1047,15 +1048,13 @@ do
10471048

10481049
LLVM_CXX_64="ccache clang++ -Qunused-arguments"
10491050
LLVM_CC_64="ccache clang -Qunused-arguments"
1050-
LLVM_OPTS="$LLVM_OPTS --enable-libcpp"
10511051
;;
10521052
("clang")
10531053
LLVM_CXX_32="clang++ -m32 -Qunused-arguments"
10541054
LLVM_CC_32="clang -m32 -Qunused-arguments"
10551055

10561056
LLVM_CXX_64="clang++ -Qunused-arguments"
10571057
LLVM_CC_64="clang -Qunused-arguments"
1058-
LLVM_OPTS="$LLVM_OPTS --enable-libcpp"
10591058
;;
10601059
("ccache gcc")
10611060
LLVM_CXX_32="ccache g++ -m32"
@@ -1111,6 +1110,10 @@ do
11111110
CXXFLAGS=$LLVM_CXXFLAGS
11121111
LDFLAGS=$LLVM_LDFLAGS
11131112

1113+
if [ "$CFG_DISABLE_LIBCPP" != 1 ]; then
1114+
LLVM_OPTS="$LLVM_OPTS --enable-libcpp"
1115+
fi
1116+
11141117
LLVM_FLAGS="$LLVM_TARGETS $LLVM_OPTS $LLVM_BUILD \
11151118
$LLVM_HOST $LLVM_TARGET --with-python=$CFG_PYTHON"
11161119

0 commit comments

Comments
 (0)