Skip to content

Commit 92f6212

Browse files
amy-kwantstellar
authored andcommitted
[test-release.sh] Add option to disable building clang-tools-extra during release testing.
This patch adds an option (no-clang-tools) to disable building clang-tools-extra when performing release testing. Prior to this patch, clang-tools-extra was built by default, but on some platforms (such as AIX), clang-tools-extra is not supported, and so we do not normally build it. Furthermore, this change should not change the invocation for targets that build clang-tools-extra normally. Differential Revision: https://reviews.llvm.org/D119520 (cherry picked from commit db69190)
1 parent 66c59c0 commit 92f6212

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

llvm/utils/release/test-release.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ do_debug="no"
2929
do_asserts="no"
3030
do_compare="yes"
3131
do_rt="yes"
32+
do_clang_tools="yes"
3233
do_libs="yes"
3334
do_libcxxabi="yes"
3435
do_libunwind="yes"
@@ -62,6 +63,7 @@ function usage() {
6263
echo " -configure-flags FLAGS Extra flags to pass to the configure step."
6364
echo " -git-ref sha Use the specified git ref for testing instead of a release."
6465
echo " -no-rt Disable check-out & build Compiler-RT"
66+
echo " -no-clang-tools Disable check-out & build clang-tools-extra"
6567
echo " -no-libs Disable check-out & build libcxx/libcxxabi/libunwind"
6668
echo " -no-libcxxabi Disable check-out & build libcxxabi"
6769
echo " -no-libunwind Disable check-out & build libunwind"
@@ -144,6 +146,9 @@ while [ $# -gt 0 ]; do
144146
-no-libs )
145147
do_libs="no"
146148
;;
149+
-no-clang-tools )
150+
do_clang_tools="no"
151+
;;
147152
-no-libcxxabi )
148153
do_libcxxabi="no"
149154
;;
@@ -235,7 +240,10 @@ if [ -z "$NumJobs" ]; then
235240
fi
236241

237242
# Projects list
238-
projects="llvm clang clang-tools-extra"
243+
projects="llvm clang"
244+
if [ $do_clang_tools = "yes" ]; then
245+
projects="$projects clang-tools-extra"
246+
fi
239247
runtimes=""
240248
if [ $do_rt = "yes" ]; then
241249
runtimes="$runtimes compiler-rt"

0 commit comments

Comments
 (0)