2012-12-20 22:10:27 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -u
|
|
|
|
set -e
|
|
|
|
|
|
|
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2014-10-15 16:56:15 +08:00
|
|
|
if [ -d "$ROOT/llvm-build" ]; then
|
|
|
|
cd $ROOT/llvm-build
|
2013-10-15 20:54:50 +08:00
|
|
|
else
|
2014-10-15 16:56:15 +08:00
|
|
|
mkdir -p $ROOT/llvm-build
|
|
|
|
cd $ROOT/llvm-build
|
2013-10-15 20:54:50 +08:00
|
|
|
CC=clang CXX=clang++ cmake -G Ninja -DLLVM_ENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON $ROOT/../../../..
|
|
|
|
fi
|
2013-10-02 20:57:43 +08:00
|
|
|
ninja
|
|
|
|
ninja check-sanitizer
|
|
|
|
ninja check-tsan
|
|
|
|
ninja check-asan
|
|
|
|
ninja check-msan
|
2013-10-03 22:56:08 +08:00
|
|
|
ninja check-lsan
|