mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-03 22:33:08 +02: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;
|
# Disable strict aliasing;
|
||||||
# see https://bugzilla.gnome.org/show_bug.cgi?id=791622
|
# 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 #
|
# Configuration begins #
|
||||||
|
Loading…
x
Reference in New Issue
Block a user