mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
meson: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
This commit is contained in:
parent
cedc7d4def
commit
f75c7823dd
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@ if cxx.has_argument('-fvisibility=hidden')
|
||||||
add_project_arguments('-fvisibility=hidden', language: 'cpp')
|
add_project_arguments('-fvisibility=hidden', language: 'cpp')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Disable strict aliasing
|
||||||
|
if cc.has_argument('-fno-strict-aliasing')
|
||||||
|
add_project_arguments('-fno-strict-aliasing', language: 'c')
|
||||||
|
endif
|
||||||
|
if cxx.has_argument('-fno-strict-aliasing')
|
||||||
|
add_project_arguments('-fno-strict-aliasing', language: 'cpp')
|
||||||
|
endif
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
check_headers = [
|
check_headers = [
|
||||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||||
|
|
Loading…
Reference in a new issue