File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ opt optimize 1 "build optimized rust code"
401
401
opt optimize-cxx 1 " build optimized C++ code"
402
402
opt optimize-llvm 1 " build optimized LLVM"
403
403
opt optimize-tests 1 " build tests with optimizations"
404
+ opt libcpp 1 " build with clang's libcpp"
404
405
opt llvm-assertions 1 " build LLVM with assertions"
405
406
opt debug 1 " build with extra debug fun"
406
407
opt ratchet-bench 0 " ratchet benchmarks"
@@ -1047,15 +1048,13 @@ do
1047
1048
1048
1049
LLVM_CXX_64=" ccache clang++ -Qunused-arguments"
1049
1050
LLVM_CC_64=" ccache clang -Qunused-arguments"
1050
- LLVM_OPTS=" $LLVM_OPTS --enable-libcpp"
1051
1051
;;
1052
1052
(" clang" )
1053
1053
LLVM_CXX_32=" clang++ -m32 -Qunused-arguments"
1054
1054
LLVM_CC_32=" clang -m32 -Qunused-arguments"
1055
1055
1056
1056
LLVM_CXX_64=" clang++ -Qunused-arguments"
1057
1057
LLVM_CC_64=" clang -Qunused-arguments"
1058
- LLVM_OPTS=" $LLVM_OPTS --enable-libcpp"
1059
1058
;;
1060
1059
(" ccache gcc" )
1061
1060
LLVM_CXX_32=" ccache g++ -m32"
@@ -1111,6 +1110,10 @@ do
1111
1110
CXXFLAGS=$LLVM_CXXFLAGS
1112
1111
LDFLAGS=$LLVM_LDFLAGS
1113
1112
1113
+ if [ " $CFG_DISABLE_LIBCPP " != 1 ]; then
1114
+ LLVM_OPTS=" $LLVM_OPTS --enable-libcpp"
1115
+ fi
1116
+
1114
1117
LLVM_FLAGS=" $LLVM_TARGETS $LLVM_OPTS $LLVM_BUILD \
1115
1118
$LLVM_HOST $LLVM_TARGET --with-python=$CFG_PYTHON "
1116
1119
You can’t perform that action at this time.
0 commit comments