echo " -no-openmp Disable check-out & build libomp"
}
-if [ `uname -s` = "Darwin" ]; then
- # compiler-rt doesn't yet build with CMake on Darwin.
- use_autoconf="yes"
-fi
-
while [ $# -gt 0 ]; do
case $1 in
-release | --release )
if [ ! -h clang ]; then
ln -s ../../cfe.src clang
fi
- cd $BuildDir/llvm.src/tools/clang/tools
- if [ ! -h extra ]; then
- ln -s ../../../../clang-tools-extra.src extra
+
+ # The autoconf and CMake builds want different symlinks here:
+ if [ "$use_autoconf" = "yes" ]; then
+ cd $BuildDir/llvm.src/tools/clang/tools
+ if [ ! -h extra ]; then
+ ln -s ../../../../clang-tools-extra.src extra
+ fi
+ else
+ cd $BuildDir/cfe.src/tools
+ if [ ! -h extra ]; then
+ ln -s ../../clang-tools-extra.src extra
+ fi
fi
+
cd $BuildDir/llvm.src/projects
if [ -d $BuildDir/test-suite.src ] && [ ! -h test-suite ]; then
ln -s ../../test-suite.src test-suite