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:
parent
5060aee7b2
commit
83e83444db
@ -209,6 +209,15 @@ supported_warnings = cc.get_supported_arguments(all_warnings)
|
|||||||
|
|
||||||
add_project_arguments(supported_warnings, language: 'c')
|
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(
|
config_h = configure_file(
|
||||||
input: 'config.h.meson',
|
input: 'config.h.meson',
|
||||||
output: 'config.h',
|
output: 'config.h',
|
||||||
|
Loading…
Reference in New Issue
Block a user