[compiler-rt] r192694 - tsan: do not build llvm from scratch on each presubmit

Dmitry Vyukov dvyukov at google.com
Tue Oct 15 05:54:51 PDT 2013


Author: dvyukov
Date: Tue Oct 15 07:54:50 2013
New Revision: 192694

URL: http://llvm.org/viewvc/llvm-project?rev=192694&view=rev
Log:
tsan: do not build llvm from scratch on each presubmit


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=192694&r1=192693&r2=192694&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/check_cmake.sh (original)
+++ compiler-rt/trunk/lib/tsan/check_cmake.sh Tue Oct 15 07:54:50 2013
@@ -3,9 +3,13 @@ set -u
 set -e
 
 ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-mkdir -p $ROOT/build
-cd $ROOT/build
-CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON $ROOT/../../../..
+if [ -d "$ROOT/build" ]; then
+  cd $ROOT/build
+else
+  mkdir -p $ROOT/build
+  cd $ROOT/build
+  CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON $ROOT/../../../..
+fi
 ninja
 ninja check-sanitizer
 ninja check-tsan





More information about the llvm-commits mailing list