do_compare="yes"
do_rt="yes"
do_libs="yes"
+do_libunwind="yes"
do_test_suite="yes"
do_openmp="no"
BuildDir="`pwd`"
echo " For example -svn-path trunk or -svn-path branches/release_37"
echo " -no-rt Disable check-out & build Compiler-RT"
echo " -no-libs Disable check-out & build libcxx/libcxxabi/libunwind"
+ echo " -no-libunwind Disable check-out & build libunwind"
echo " -no-test-suite Disable check-out & build test-suite"
echo " -openmp Check out and build the OpenMP run-time (experimental)"
}
-no-libs )
do_libs="no"
;;
+ -no-libunwind )
+ do_libunwind="no"
+ ;;
-no-test-suite )
do_test_suite="no"
;;
projects="$projects compiler-rt"
fi
if [ $do_libs = "yes" ]; then
- projects="$projects libcxx libcxxabi libunwind"
+ projects="$projects libcxx libcxxabi"
+ if [ $do_libunwind = "yes" ]; then
+ projects="$projects libunwind"
+ fi
fi
if [ $do_test_suite = "yes" ]; then
projects="$projects test-suite"
if [ ! -h clang ]; then
ln -s ../../cfe.src clang
fi
- cd $BuildDir/llvm.src/tools/clang/tools
- if [ ! -h clang-tools-extra ]; then
- ln -s ../../../../clang-tools-extra.src extra
+ cd $BuildDir/cfe.src/tools
+ if [ ! -h extra ]; then
+ ln -s ../../clang-tools-extra.src extra
fi
cd $BuildDir/llvm.src/projects
if [ -d $BuildDir/test-suite.src ] && [ ! -h test-suite ]; then
echo "# ${MAKE} install DESTDIR=$BuildDir/Phase3/openmp.install"
${MAKE} install DESTDIR=$BuildDir/Phase3/openmp.install
- OpenMPPackage=OpenMP-$Triple
+ OpenMPPackage=OpenMP-$Release
+ if [ $RC != "final" ]; then
+ OpenMPPackage=$OpenMPPackage-$RC
+ fi
+ OpenMPPackage=$OpenMPPackage-$Triple
+
mv $BuildDir/Phase3/openmp.install/usr/local $BuildDir/$OpenMPPackage
cd $BuildDir
tar cvfJ $BuildDir/$OpenMPPackage.tar.xz $OpenMPPackage