projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd10f14
)
meson: use -fno-strict-aliasing if supported
author
Tim-Philipp Müller
<tim@centricular.com>
Tue, 30 Jan 2018 20:30:47 +0000
(20:30 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Tue, 30 Jan 2018 20:30:54 +0000
(20:30 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=769183
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index
387e46f
..
642b60c
100644
(file)
--- 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')))