build: Enable no-omit-frame-pointer for all non-plain builds
To mirror Mutter. This is useful for local installations with e.g. the `release` buildtype. Further more, Fedora has been doing the same system wide and it apparently was helpful in various ways. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2982>
This commit is contained in:
parent
4b09aa2b8a
commit
0ffddb0cd2
17
meson.build
17
meson.build
@ -185,7 +185,9 @@ cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)
|
|||||||
|
|
||||||
buildtype = get_option('buildtype')
|
buildtype = get_option('buildtype')
|
||||||
if buildtype != 'plain'
|
if buildtype != 'plain'
|
||||||
all_warnings = [
|
gs_c_args = [
|
||||||
|
'-fno-omit-frame-pointer',
|
||||||
|
'-mno-omit-leaf-frame-pointer',
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
'-Wmissing-declarations',
|
'-Wmissing-declarations',
|
||||||
@ -222,17 +224,16 @@ if buildtype != 'plain'
|
|||||||
'-Werror=empty-body',
|
'-Werror=empty-body',
|
||||||
'-Werror=write-strings',
|
'-Werror=write-strings',
|
||||||
]
|
]
|
||||||
supported_warnings = cc.get_supported_arguments(all_warnings)
|
|
||||||
add_project_arguments(supported_warnings, language: 'c')
|
|
||||||
endif
|
|
||||||
|
|
||||||
if get_option('debug')
|
if get_option('debug')
|
||||||
debug_c_args = [
|
gs_c_args += [
|
||||||
'-DG_ENABLE_DEBUG',
|
'-DG_ENABLE_DEBUG',
|
||||||
'-fno-omit-frame-pointer'
|
|
||||||
]
|
]
|
||||||
supported_debug_c_args = cc.get_supported_arguments(debug_c_args)
|
endif
|
||||||
add_project_arguments(supported_debug_c_args, language: 'c')
|
|
||||||
|
supported_gs_c_args = cc.get_supported_arguments(gs_c_args)
|
||||||
|
add_project_arguments(supported_gs_c_args, language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config_h = configure_file(
|
config_h = configure_file(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user