Add --enable-sanitizers, fix make check with it
It's cleaner if this is an build option rather than being kludged into the CI layer. Notably we can't use `LD_PRELOAD` anymore with ASAN, so update our tests to check for `ASAN_OPTIONS`.
This commit is contained in:
1 parent
0485817978
commit
d49f3291ad
3 files changed
+15
-12
No files matched your search
@@ -5,8 +5,7 @@ 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
|
||||
build --disable-gtk-doc --with-curl --with-openssl --enable-sanitizers
|
||||
make check
|
||||
Reference in new issue
Block a user