| #!/usr/bin/env bash |
| |
| set -x |
| set -e |
| set -u |
| |
| HERE="$(cd $(dirname $0) && pwd)" |
| . ${HERE}/buildbot_functions.sh |
| |
| ROOT=`pwd` |
| PLATFORM=`uname` |
| export PATH="/usr/local/bin:$PATH" |
| |
| LLVM=$ROOT/llvm |
| CMAKE_COMMON_OPTIONS="-GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON" |
| |
| clobber |
| |
| buildbot_update |
| |
| # Stage 1 |
| |
| build_stage1_clang |
| |
| # Stage 2 / AddressSanitizer |
| |
| build_stage2_asan |
| |
| check_stage2_asan |
| |
| # Stage 3 / AddressSanitizer |
| |
| export ASAN_OPTIONS="check_initialization_order=true:detect_stack_use_after_return=1:detect_leaks=1" |
| build_stage3_asan |
| |
| check_stage3_asan |
| |