Home | History | Annotate | Download | only in tsan
      1 #!/bin/bash
      2 set -u
      3 set -e
      4 
      5 ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
      6 if [ -d "$ROOT/llvm-build" ]; then
      7   cd $ROOT/llvm-build
      8 else
      9   mkdir -p $ROOT/llvm-build
     10   cd $ROOT/llvm-build
     11   CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON $ROOT/../../../..
     12 fi
     13 ninja
     14 ninja check-sanitizer
     15 ninja check-tsan
     16 ninja check-asan
     17 ninja check-msan
     18 ninja check-lsan
     19