From 141607b6de3113e5bb0174ee817bf9d438e31950 Mon Sep 17 00:00:00 2001
From: trav90 <travawine@openmailbox.org>
Date: Sun, 4 Mar 2018 15:30:09 -0600
Subject: Disable strict-aliasing for GCC in js/src/jsapi-tests

Compiling our tree with strict-aliasing is not supported.
---
 js/src/jsapi-tests/moz.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'js/src/jsapi-tests')

diff --git a/js/src/jsapi-tests/moz.build b/js/src/jsapi-tests/moz.build
index ab42ff384..f7a6080aa 100644
--- a/js/src/jsapi-tests/moz.build
+++ b/js/src/jsapi-tests/moz.build
@@ -147,7 +147,7 @@ USE_LIBS += [
 OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
 
 if CONFIG['GNU_CXX']:
-    CXXFLAGS += ['-Wno-shadow', '-Werror=format']
+    CXXFLAGS += ['-Wno-shadow', '-Werror=format', '-fno-strict-aliasing']
 
 # This is intended as a temporary workaround to enable VS2015.
 if CONFIG['_MSC_VER']:
-- 
cgit v1.2.3