From 3bf40d193bd5604e60356ace548b18f6dbd92506 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 9 Sep 2023 02:45:06 +0300 Subject: [PATCH] wscript: force C++98 to avoid std::byte redefining our byte thanks to using namespace std somewhere --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index c61ed94..8d0a819 100644 --- a/wscript +++ b/wscript @@ -73,6 +73,8 @@ def configure(conf): cflags, linkflags = conf.get_optimization_flags() cxxflags = list(cflags) # optimization flags are common between C and C++ but we need a copy + if conf.env.COMPILER_CC != 'msvc': + cxxflags += ['-std=c++98'] # on the Switch, allow undefined symbols by default, which is needed for libsolder to work # we'll specifically disallow them for the engine executable