mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
meson: only add -fno-strict-aliasing if supported by compiler
Fixes warning spam on MSVC builds. https://bugzilla.gnome.org/show_bug.cgi?id=791622
This commit is contained in:
parent
f25c7a2a6e
commit
b241e3a5cc
@ -65,7 +65,9 @@ add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
||||
|
||||
# Disable strict aliasing;
|
||||
# see https://bugzilla.gnome.org/show_bug.cgi?id=791622
|
||||
add_project_arguments('-fno-strict-aliasing', language: 'c')
|
||||
if cc.has_argument('-fno-strict-aliasing')
|
||||
add_project_arguments('-fno-strict-aliasing', language: 'c')
|
||||
endif
|
||||
|
||||
########################
|
||||
# Configuration begins #
|
||||
|
Loading…
Reference in New Issue
Block a user