summaryrefslogtreecommitdiff
path: root/ci/build-check-sanitized.sh
blob: 39c06f43d29c5fc378bed0fc8760d825c447b2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/bash
# Build with ASAN and UBSAN + unit tests.

set -xeuo pipefail

dn=$(dirname $0)
. ${dn}/libbuild.sh
export CFLAGS='-fsanitize=address -fsanitize=undefined -fsanitize-undefined-trap-on-error'
# We leak global state in a few places, fixing that is hard.
export ASAN_OPTIONS='detect_leaks=0'
${dn}/build.sh
make check