mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 16:33:40 +02:00
docs: Update debugging docs to mention Meson build options
The behaviour of the Meson build has changed a little vs what we did in autotools. In autotools, --enable-debug was a tristate (yes, no, undefined), with all three options resulting in different macro definitions. In Meson, we have a bistate of --buildtype={debug,debugoptimized} vs --buildtype=(anything else). There is no way to automatically define G_DISABLE_ASSERT or G_DISABLE_CHECKS while building GLib — you need to define them in your CPPFLAGS in your environment instead. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -4,7 +4,7 @@ Traps (G_BREAKPOINT) and traces for the debuging
|
||||
|
||||
Some code portions contain trap variables that can be set during
|
||||
debugging time if G_ENABLE_DEBUG has been defined upon compilation
|
||||
(use the --enable-debug=yes option to configure for this, macros.txt
|
||||
(use the --buildtype=debug option to configure for this, macros.txt
|
||||
covers more details).
|
||||
Such traps lead to immediate code halts to examine the current
|
||||
program state and backtrace.
|
||||
|
Reference in New Issue
Block a user