From 1d6f6957491e7fc28fedc4a108a5cf65d3eeba39 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 7 Aug 2023 19:19:19 +0300 Subject: [PATCH] wscript: disable stringop-overflow for NSW to workaround buggy toolchain --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index bfbfbc1c0..362705b22 100644 --- a/wscript +++ b/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',