llvm.org GIT mirror llvm / b82e296
Merging r242919: ------------------------------------------------------------------------ r242919 | rengolin | 2015-07-22 11:21:39 -0700 (Wed, 22 Jul 2015) | 8 lines [Release] Allow release testers to disable certain components Not all components build correctly on all targets and the release script had no way to disable them other than editing the script locally. This change provides a way to disable the test-suite, compiler-rt and the libraries, as well as allowing you to re-run on the same directory without checking out all sources again. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@242937 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 36 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1717 MAKE=make
1818 fi
1919
20 projects="llvm cfe compiler-rt libcxx libcxxabi test-suite clang-tools-extra libunwind"
21
2220 # Base SVN URL for the sources.
2321 Base_url="http://llvm.org/svn/llvm-project"
2422
3129 do_debug="no"
3230 do_asserts="no"
3331 do_compare="yes"
32 do_rt="yes"
33 do_libs="yes"
34 do_test_suite="yes"
3435 BuildDir="`pwd`"
3536 use_autoconf="no"
3637 ExtraConfigureFlags=""
5152 echo " -use-gzip Use gzip instead of xz."
5253 echo " -configure-flags FLAGS Extra flags to pass to the configure step."
5354 echo " -use-autoconf Use autoconf instead of cmake"
55 echo " -no-rt Disable check-out & build Compiler-RT"
56 echo " -no-libs Disable check-out & build libcxx/libcxxabi/libunwind"
57 echo " -no-test-suite Disable check-out & build test-suite"
5458 }
5559
5660 if [ `uname -s` = "Darwin" ]; then
109113 -use-autoconf | --use-autoconf )
110114 use_autoconf="yes"
111115 ;;
116 -no-rt )
117 do_rt="no"
118 ;;
119 -no-libs )
120 do_libs="no"
121 ;;
122 -no-test-suite )
123 do_test_suite="no"
124 ;;
112125 -help | --help | -h | --h | -\? )
113126 usage
114127 exit 0
148161 fi
149162 if [ -z "$NumJobs" ]; then
150163 NumJobs=3
164 fi
165
166 # Projects list
167 projects="llvm cfe clang-tools-extra"
168 if [ $do_rt = "yes" ]; then
169 projects="$projects compiler-rt"
170 fi
171 if [ $do_libs = "yes" ]; then
172 projects="$projects libcxx libcxxabi libunwind"
173 fi
174 if [ $do_test_suite = "yes" ]; then
175 projects="$projects test-suite"
151176 fi
152177
153178 # Go to the build directory (may be different from CWD)
198223 check_valid_urls
199224
200225 for proj in $projects ; do
226 if [ -d $proj.src ]; then
227 echo "# Reusing $proj $Release-$RC sources"
228 continue
229 fi
201230 echo "# Exporting $proj $Release-$RC sources"
202231 if ! svn export -q $Base_url/$proj/tags/RELEASE_$Release_no_dot/$RC $proj.src ; then
203232 echo "error: failed to export $proj project"
215244 ln -s ../../../../clang-tools-extra.src extra
216245 fi
217246 cd $BuildDir/llvm.src/projects
218 if [ ! -h test-suite ]; then
247 if [ -d $BuildDir/test-suite.src ] && [ ! -h test-suite ]; then
219248 ln -s ../../test-suite.src test-suite
220249 fi
221 if [ ! -h compiler-rt ]; then
250 if [ -d $BuildDir/compiler-rt.src ] && [ ! -h compiler-rt ]; then
222251 ln -s ../../compiler-rt.src compiler-rt
223252 fi
224 if [ ! -h libcxx ]; then
253 if [ -d $BuildDir/libcxx.src ] && [ ! -h libcxx ]; then
225254 ln -s ../../libcxx.src libcxx
226255 fi
227 if [ ! -h libcxxabi ]; then
256 if [ -d $BuildDir/libcxxabi.src ] && [ ! -h libcxxabi ]; then
228257 ln -s ../../libcxxabi.src libcxxabi
229258 fi
230 if [ ! -h libunwind ]; then
259 if [ -d $BuildDir/libunwind.src ] && [ ! -h libunwind ]; then
231260 ln -s ../../libunwind.src libunwind
232261 fi
233262