ci: Force-enable -Dglib_debug for scan-build jobs

Several of the assertions in GLib (particularly on hot paths in
`gobject.c`) are protected behind `#if G_ENABLE_DEBUG`. In order for
scan-build to see them, the scan-build CI job needs to make sure that
a debug build is definitely enabled — not just rely on it being
implicitly enabled via the combination of other build options.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #1767
This commit is contained in:
Philip Withnall 2024-04-12 19:35:05 +01:00
parent 0814be8bef
commit c844abc759
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -748,6 +748,7 @@ scan-build:
--prefix=$HOME/glib-installed --prefix=$HOME/glib-installed
--localstatedir=/var --localstatedir=/var
--libdir=lib --libdir=lib
-Dglib_debug=enabled
-Dsystemtap=true -Dsystemtap=true
-Ddtrace=true -Ddtrace=true
-Dinstalled_tests=true -Dinstalled_tests=true