Commit 9705d060 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Merging r257905:

------------------------------------------------------------------------
r257905 | hans | 2016-01-15 09:04:45 -0800 (Fri, 15 Jan 2016) | 3 lines

test-release.sh: Fix clang-tools-extra symlink for CMake build

The CMake and Autoconf builds want the symlink set up differently.
------------------------------------------------------------------------

llvm-svn: 258146
parent d1d2746d
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -288,10 +288,20 @@ function export_sources() {
    if [ ! -h clang ]; then
        ln -s ../../cfe.src clang
    fi

    # 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