Skip to content

Commit

Permalink
wscript: disable stringop-overflow for NSW to workaround buggy toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Aug 7, 2023
1 parent 08a2d43 commit 1d6f695
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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',
Expand Down

0 comments on commit 1d6f695

Please sign in to comment.