[llvm] r257905 - test-release.sh: Fix clang-tools-extra symlink for CMake build
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 09:04:45 PST 2016
Author: hans
Date: Fri Jan 15 11:04:45 2016
New Revision: 257905
URL: http://llvm.org/viewvc/llvm-project?rev=257905&view=rev
Log:
test-release.sh: Fix clang-tools-extra symlink for CMake build
The CMake and Autoconf builds want the symlink set up differently.
Modified:
llvm/trunk/utils/release/test-release.sh
Modified: llvm/trunk/utils/release/test-release.sh
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/release/test-release.sh?rev=257905&r1=257904&r2=257905&view=diff
==============================================================================
--- llvm/trunk/utils/release/test-release.sh (original)
+++ llvm/trunk/utils/release/test-release.sh Fri Jan 15 11:04:45 2016
@@ -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
More information about the llvm-commits
mailing list