mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-12 16:18:01 +00:00
wscript: disable stringop-overflow for NSW to workaround buggy toolchain
This commit is contained in:
parent
08a2d431da
commit
1d6f695749
5
wscript
5
wscript
@ -301,7 +301,6 @@ def configure(conf):
|
||||
'-Werror=sizeof-pointer-div',
|
||||
'-Werror=strict-aliasing',
|
||||
'-Werror=string-compare',
|
||||
'-Werror=stringop-overflow',
|
||||
'-Werror=tautological-compare',
|
||||
'-Werror=use-after-free=3',
|
||||
'-Werror=unsequenced', # clang's version of -Werror=sequence-point
|
||||
@ -317,6 +316,10 @@ def configure(conf):
|
||||
# '-Wdouble-promotion',
|
||||
]
|
||||
|
||||
# buggy compiler on NSW
|
||||
if conf.env.DEST_OS != 'nswitch':
|
||||
opt_flags += [ '-Werror=stringop-overflow' ]
|
||||
|
||||
opt_cflags = [
|
||||
'-Werror=declaration-after-statement',
|
||||
'-Werror=enum-conversion',
|
||||
|
Loading…
Reference in New Issue
Block a user