meson: Add some compiler arguments to debug builds

To get better debug information.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/464
This commit is contained in:
Robert Mader 2019-03-17 14:38:39 +01:00 committed by Robert Mader
parent 5060aee7b2
commit 83e83444db

View File

@ -209,6 +209,15 @@ supported_warnings = cc.get_supported_arguments(all_warnings)
add_project_arguments(supported_warnings, language: 'c')
if get_option('debug')
debug_c_args = [
'-DG_ENABLE_DEBUG',
'-fno-omit-frame-pointer'
]
supported_debug_c_args = cc.get_supported_arguments(debug_c_args)
add_project_arguments(supported_debug_c_args, language: 'c')
endif
config_h = configure_file(
input: 'config.h.meson',
output: 'config.h',