meson: use -fno-strict-aliasing where supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
This commit is contained in:
parent
d897de9738
commit
abd65bfff8
@ -26,6 +26,11 @@ if cc.has_argument('-fvisibility=hidden')
|
||||
add_project_arguments('-fvisibility=hidden', language: 'c')
|
||||
endif
|
||||
|
||||
# Disable strict aliasing
|
||||
if cc.has_argument('-fno-strict-aliasing')
|
||||
add_project_arguments('-fno-strict-aliasing', language: 'c')
|
||||
endif
|
||||
|
||||
# Mandatory GST deps
|
||||
libm = cc.find_library('m', required : false)
|
||||
gst_dep = dependency('gstreamer-1.0', version : gst_req,
|
||||
|
Loading…
x
Reference in New Issue
Block a user