From 5f1f48287e806544d745e9a8f5aed47234c61292 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 24 Sep 2024 15:42:34 +0100 Subject: [PATCH] gitlab-ci: enable sanitizers for the meson builds Sadly, we still get a bunch of leaks in the GL drivers and/or LLVM. So we need to disable the leaks checker. Signed-off-by: Emil Velikov --- .gitlab-ci/build-meson.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci/build-meson.sh b/.gitlab-ci/build-meson.sh index 2a504cc..abf0b99 100644 --- a/.gitlab-ci/build-meson.sh +++ b/.gitlab-ci/build-meson.sh @@ -34,11 +34,14 @@ meson setup _build \ -D build-manpages=true \ -D build-htmldocs=true \ -D build-examples=true \ + -D b_sanitize=address,undefined \ -D werror=true \ "${platform_option[@]}" meson compile -C _build -j4 +ASAN_OPTIONS=detect_leaks=0:halt_on_error=1:abort_on_error=1:print_summary=1 +export ASAN_OPTIONS "${test_wrapper[@]}" meson test -C _build meson install -C _build -- 2.11.4.GIT