tsan: use a different dir for llvm build

build is used as gtest temp build dir, and is cleared during every build

llvm-svn: 219783
This commit is contained in:
Dmitry Vyukov 2014-10-15 08:56:15 +00:00
parent 6e7b0a088e
commit a08a8dc01d
1 changed files with 4 additions and 4 deletions

View File

@ -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