summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2021-02-03 14:48:49 +0000
committerColin Walters <walters@verbum.org>2021-02-03 20:33:19 +0000
commitd49f3291adb4494d28cbbdf9c05c3e6f21936754 (patch)
tree7f6406a06c14e1e9de735fc9344de629fe5abe57 /ci
parent0485817978f699cee76ee408d361c8e739ff57c8 (diff)
downloadostree-d49f3291adb4494d28cbbdf9c05c3e6f21936754.tar.gz
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`.
Diffstat (limited to 'ci')
-rwxr-xr-xci/build-check-sanitized.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/ci/build-check-sanitized.sh b/ci/build-check-sanitized.sh
index 39c06f43..f0d98431 100755
--- a/ci/build-check-sanitized.sh
+++ b/ci/build-check-sanitized.sh
@@ -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