Skip to content

Commit 19f100e

Browse files
committed
test-release.sh: Only build clang for stage1 and stage2
The stage1 and stage2 builds aren't packaged, so we only need to build enough of the toolchain to build the next phase. Reviewed By: thieta, amyk Differential Revision: https://reviews.llvm.org/D141552
1 parent 37505da commit 19f100e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

llvm/utils/release/test-release.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,12 +404,17 @@ function configure_llvmCore() {
404404
;;
405405
esac
406406

407-
project_list=${projects// /;}
408-
# Leading spaces will result in ";<runtime name>". This causes a CMake
409-
# error because the empty string before the first ';' is treated as an
410-
# unknown runtime name.
411-
runtimes=$(echo $runtimes | sed -e 's/^\s*//')
412-
runtime_list=${runtimes// /;}
407+
if [ "$Phase" -eq "3" ]; then
408+
project_list=${projects// /;}
409+
# Leading spaces will result in ";<runtime name>". This causes a CMake
410+
# error because the empty string before the first ';' is treated as an
411+
# unknown runtime name.
412+
runtimes=$(echo $runtimes | sed -e 's/^\s*//')
413+
runtime_list=${runtimes// /;}
414+
else
415+
project_list="clang"
416+
runtime_list=""
417+
fi
413418
echo "# Using C compiler: $c_compiler"
414419
echo "# Using C++ compiler: $cxx_compiler"
415420

0 commit comments

Comments
 (0)