From adee52f24254cdd480e4913092a09e8184b43294 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 15 Jan 2016 17:04:45 +0000 Subject: [PATCH] test-release.sh: Fix clang-tools-extra symlink for CMake build The CMake and Autoconf builds want the symlink set up differently. llvm-svn: 257905 --- utils/release/test-release.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/utils/release/test-release.sh b/utils/release/test-release.sh index fb50160f5fe..51eef2026fa 100755 --- a/utils/release/test-release.sh +++ b/utils/release/test-release.sh @@ -288,10 +288,20 @@ function export_sources() { 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