mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
meson: Do not add compiler flags if 'plain' buildtype is used
That is how the 'plain' buildtype is meant in meson. https://gitlab.gnome.org/GNOME/mutter/merge_requests/497
This commit is contained in:
parent
a859d76c72
commit
75e2bfb062
@ -276,6 +276,8 @@ endforeach
|
|||||||
|
|
||||||
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
||||||
|
|
||||||
|
buildtype = get_option('buildtype')
|
||||||
|
if buildtype != 'plain'
|
||||||
all_warnings = [
|
all_warnings = [
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
@ -313,10 +315,9 @@ all_warnings = [
|
|||||||
'-Werror=empty-body',
|
'-Werror=empty-body',
|
||||||
'-Werror=write-strings',
|
'-Werror=write-strings',
|
||||||
]
|
]
|
||||||
|
|
||||||
supported_warnings = cc.get_supported_arguments(all_warnings)
|
supported_warnings = cc.get_supported_arguments(all_warnings)
|
||||||
|
|
||||||
add_project_arguments(supported_warnings, language: 'c')
|
add_project_arguments(supported_warnings, language: 'c')
|
||||||
|
endif
|
||||||
|
|
||||||
if get_option('debug')
|
if get_option('debug')
|
||||||
debug_c_args = [
|
debug_c_args = [
|
||||||
|
Loading…
Reference in New Issue
Block a user