wscript: force C++98 to avoid std::byte redefining our byte thanks to using namespace std somewhere

This commit is contained in:
Alibek Omarov 2023-09-09 02:45:06 +03:00
parent 6eeaa1f199
commit 3bf40d193b

View file

@ -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