summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-01-30 20:30:47 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-01-30 20:30:54 +0000
commite1fdb5bf030b4b18e62313e94adf08a2310935ec (patch)
tree96ca2491c5ba95cc15e6518ec5cb1c1aa538d022
parentcd10f14726cbdc497b117e75b320c379b2403916 (diff)
meson: use -fno-strict-aliasing if supported
https://bugzilla.gnome.org/show_bug.cgi?id=769183
-rw-r--r--meson.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 387e46f4e..642b60cef 100644
--- a/meson.build
+++ b/meson.build
@@ -54,6 +54,11 @@ if have_visibility_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
+
cdata = configuration_data()
cdata.set_quoted('GST_API_VERSION', apiversion)
cdata.set_quoted('GST_DATADIR', join_paths(prefix, get_option('datadir')))