summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authortrav90 <travawine@openmailbox.org>2018-03-04 15:05:47 -0600
committertrav90 <travawine@openmailbox.org>2018-03-04 15:05:47 -0600
commit860efa70ee5be805cd0d8c9bcfcb2374f11296f2 (patch)
treef3e5739527df92a8be37da3da50d87369a4f4a49 /js/src
parentf6e7a511bc39106c1bb0f9461d1eb23564c10c8b (diff)
downloadUXP-860efa70ee5be805cd0d8c9bcfcb2374f11296f2.tar
UXP-860efa70ee5be805cd0d8c9bcfcb2374f11296f2.tar.gz
UXP-860efa70ee5be805cd0d8c9bcfcb2374f11296f2.tar.lz
UXP-860efa70ee5be805cd0d8c9bcfcb2374f11296f2.tar.xz
UXP-860efa70ee5be805cd0d8c9bcfcb2374f11296f2.zip
Disable strict-aliasing for GCC in js/src
Compiling our tree with strict-aliasing is not supported.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/moz.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/moz.build b/js/src/moz.build
index 1162cb70c..0a4abd80f 100644
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -785,7 +785,9 @@ if CONFIG['JS_HAS_CTYPES']:
DEFINES['FFI_BUILDING'] = True
if CONFIG['GNU_CXX']:
- CXXFLAGS += ['-Wno-shadow', '-Werror=format']
+ # Disable strict-aliasing for GCC, which is enabled by default
+ # starting with version 7.1, see Mozilla bug 1363009.
+ CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing']
# Suppress warnings in third-party code.
if CONFIG['CLANG_CXX']: