[compiler-rt] r219783 - tsan: use a different dir for llvm build

Dmitry Vyukov dvyukov at google.com
Wed Oct 15 01:56:16 PDT 2014


Author: dvyukov
Date: Wed Oct 15 03:56:15 2014
New Revision: 219783

URL: http://llvm.org/viewvc/llvm-project?rev=219783&view=rev
Log:
tsan: use a different dir for llvm build
build is used as gtest temp build dir, and is cleared during every build


Modified:
    compiler-rt/trunk/lib/tsan/check_cmake.sh

Modified: compiler-rt/trunk/lib/tsan/check_cmake.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/check_cmake.sh?rev=219783&r1=219782&r2=219783&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/check_cmake.sh (original)
+++ compiler-rt/trunk/lib/tsan/check_cmake.sh Wed Oct 15 03:56:15 2014
@@ -3,11 +3,11 @@ set -u
 set -e
 
 ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -d "$ROOT/build" ]; then
-  cd $ROOT/build
+if [ -d "$ROOT/llvm-build" ]; then
+  cd $ROOT/llvm-build
 else
-  mkdir -p $ROOT/build
-  cd $ROOT/build
+  mkdir -p $ROOT/llvm-build
+  cd $ROOT/llvm-build
   CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON $ROOT/../../../..
 fi
 ninja





More information about the llvm-commits mailing list