@@ -244,16 +244,17 @@ projects="llvm clang"
244
244
if [ $do_clang_tools = " yes" ]; then
245
245
projects=" $projects clang-tools-extra"
246
246
fi
247
+ runtimes=" "
247
248
if [ $do_rt = " yes" ]; then
248
- projects =" $projects compiler-rt"
249
+ runtimes =" $runtimes compiler-rt"
249
250
fi
250
251
if [ $do_libs = " yes" ]; then
251
- projects =" $projects libcxx"
252
+ runtimes =" $runtimes libcxx"
252
253
if [ $do_libcxxabi = " yes" ]; then
253
- projects =" $projects libcxxabi"
254
+ runtimes =" $runtimes libcxxabi"
254
255
fi
255
256
if [ $do_libunwind = " yes" ]; then
256
- projects =" $projects libunwind"
257
+ runtimes =" $runtimes libunwind"
257
258
fi
258
259
fi
259
260
if [ $do_openmp = " yes" ]; then
@@ -380,6 +381,7 @@ function configure_llvmCore() {
380
381
esac
381
382
382
383
project_list=${projects// / ;}
384
+ runtime_list=${runtimes// / ;}
383
385
echo " # Using C compiler: $c_compiler "
384
386
echo " # Using C++ compiler: $cxx_compiler "
385
387
@@ -392,6 +394,7 @@ function configure_llvmCore() {
392
394
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
393
395
-DLLVM_ENABLE_PROJECTS=" $project_list " \
394
396
-DLLVM_LIT_ARGS=" -j $NumJobs " \
397
+ -DLLVM_ENABLE_RUNTIMES=" $runtime_list " \
395
398
$ExtraConfigureFlags $BuildDir /llvm-project/llvm \
396
399
2>&1 | tee $LogDir /llvm.configure-Phase$Phase -$Flavor .log
397
400
env CC=" $c_compiler " CXX=" $cxx_compiler " \
@@ -400,6 +403,7 @@ function configure_llvmCore() {
400
403
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
401
404
-DLLVM_ENABLE_PROJECTS=" $project_list " \
402
405
-DLLVM_LIT_ARGS=" -j $NumJobs " \
406
+ -DLLVM_ENABLE_RUNTIMES=" $runtime_list " \
403
407
$ExtraConfigureFlags $BuildDir /llvm-project/llvm \
404
408
2>&1 | tee $LogDir /llvm.configure-Phase$Phase -$Flavor .log
405
409
0 commit comments