summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-01-30 20:33:36 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-01-30 20:33:39 +0000
commitdbae19773add26d7db502f25a12eb0050763fbe4 (patch)
tree62b29427d975ddf8aae0e4c1ebc82cd999855c8b
parentc443e33a3a46c8e8aba260e4554fadffa655efcd (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 073a40179..86fa61c74 100644
--- a/meson.build
+++ b/meson.build
@@ -55,6 +55,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
+
core_conf = configuration_data()
check_headers = [
['HAVE_DLFCN_H', 'dlfcn.h'],