diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh --- a/llvm/utils/release/test-release.sh +++ b/llvm/utils/release/test-release.sh @@ -405,6 +405,10 @@ 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// /;} echo "# Using C compiler: $c_compiler" echo "# Using C++ compiler: $cxx_compiler"