mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 07:07:30 +09:00
Disable strict-aliasing for GCC in js/src
Compiling our tree with strict-aliasing is not supported.
This commit is contained in:
parent
45c9880478
commit
be0c996191
1 changed files with 3 additions and 1 deletions
|
|
@ -785,7 +785,9 @@ if CONFIG['JS_HAS_CTYPES']:
|
||||||
DEFINES['FFI_BUILDING'] = True
|
DEFINES['FFI_BUILDING'] = True
|
||||||
|
|
||||||
if CONFIG['GNU_CXX']:
|
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.
|
# Suppress warnings in third-party code.
|
||||||
if CONFIG['CLANG_CXX']:
|
if CONFIG['CLANG_CXX']:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue