Disable strict-aliasing for GCC in js/src/jsapi-tests

Compiling our tree with strict-aliasing is not supported.
This commit is contained in:
trav90 2018-03-04 15:30:09 -06:00 committed by Roy Tam
commit e795fe8c1b

View file

@ -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']: