]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
CI: Implement debug build variant for Meson
authorSimon McVittie <smcv@collabora.com>
Fri, 24 Jun 2022 13:32:19 +0000 (14:32 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 13 Jul 2022 19:36:13 +0000 (20:36 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
tools/ci-build.sh

index 313f3535d2b73eef0c23b0c820e3b7b0d069815d..42eef2fdee194af2a229e856a463c6d5a3ecdc64 100755 (executable)
@@ -471,6 +471,27 @@ case "$ci_buildsys" in
                 ;;
         esac
 
+        case "$ci_variant" in
+            (debug)
+                set -- -Dasserts=true "$@"
+                set -- -Dembedded_tests=true "$@"
+                set -- -Dmodular_tests=enabled "$@"
+                set -- -Dverbose_mode=true "$@"
+
+                case "$ci_host" in
+                    (*-w64-mingw32)
+                        ;;
+                    (*)
+                        set -- -Db_sanitize=address,undefined "$@"
+                        set -- -Db_pie=true "$@"
+                        set -- -Duser_session=true "$@"
+                        ;;
+                esac
+
+                shift
+                ;;
+        esac
+
         # Debian doesn't have similar convenience wrappers, but we can use
         # a cross-file
         if [ -z "$meson_setup" ] || ! command -v "$meson_setup" >/dev/null; then
@@ -482,7 +503,7 @@ case "$ci_buildsys" in
         fi
 
         # FIXME: ducktype target fails on debian CI..
-        $meson_setup -Dducktype_docs=disabled
+        $meson_setup -Dducktype_docs=disabled "$@"
         meson compile
         [ "$ci_test" = no ] || meson test
         DESTDIR=DESTDIR meson install