Bug 1366497 - disable strict-aliasing for gcc in js/src/gdb & js/src/jsapi-tests r=sfink

MozReview-Commit-ID: HI8yGkXpDXg

--HG--
extra : rebase_source : e727801d5b894f21c6ffa77f721c22078f76b11f
This commit is contained in:
Sylvestre Ledru 2017-05-20 17:28:20 +02:00
parent 9a8d559e54
commit 5fddbbeb72
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ if CONFIG['ENABLE_INTL_API'] and CONFIG['MOZ_ICU_DATA_ARCHIVE']:
OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
if CONFIG['GNU_CXX']:
CXXFLAGS += ['-Wno-shadow']
CXXFLAGS += ['-Wno-shadow', '-fno-strict-aliasing']
# This is intended as a temporary workaround to enable VS2015.
if CONFIG['_MSC_VER']:

View File

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