diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh index 0c214261c2723..0818cb8613dd1 100755 --- a/llvm/utils/release/test-release.sh +++ b/llvm/utils/release/test-release.sh @@ -404,12 +404,17 @@ function configure_llvmCore() { ;; esac - project_list=${projects// /;} - # Leading spaces will result in ";". This causes a CMake - # error because the empty string before the first ';' is treated as an - # unknown runtime name. - runtimes=$(echo $runtimes | sed -e 's/^\s*//') - runtime_list=${runtimes// /;} + if [ "$Phase" -eq "3" ]; then + project_list=${projects// /;} + # Leading spaces will result in ";". This causes a CMake + # error because the empty string before the first ';' is treated as an + # unknown runtime name. + runtimes=$(echo $runtimes | sed -e 's/^\s*//') + runtime_list=${runtimes// /;} + else + project_list="clang" + runtime_list="" + fi echo "# Using C compiler: $c_compiler" echo "# Using C++ compiler: $cxx_compiler"