1#!/bin/bash 2set -u 3set -e 4 5ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 6if [ -d "$ROOT/llvm-build" ]; then 7 cd $ROOT/llvm-build 8else 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/../../../.. 12fi 13ninja 14ninja check-sanitizer 15ninja check-tsan 16ninja check-asan 17ninja check-msan 18ninja check-lsan 19