From 96b95db7c8c7c3d555f5e78ec4b8c208d9ad79cc Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 4 Nov 2024 13:19:21 +0300 Subject: [PATCH] filesystem: compile with rtti, but still disable exceptions --- filesystem/wscript | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/filesystem/wscript b/filesystem/wscript index 73b832d7..d780ee9b 100644 --- a/filesystem/wscript +++ b/filesystem/wscript @@ -4,12 +4,8 @@ def options(opt): pass def configure(conf): - nortti = { - 'msvc': ['/GR-'], - 'default': ['-fno-rtti', '-fno-exceptions'] - } - conf.env.append_unique('CXXFLAGS', conf.get_flags_by_compiler(nortti, conf.env.COMPILER_CC)) - + if conf.env.COMPILER_CXX != 'msvc': + conf.env.append_unique('CXXFLAGS', ['-fno-exceptions']) if conf.env.DEST_OS == 'android': conf.check_cc(lib='android') elif conf.env.cxxshlib_PATTERN.startswith('lib'): # remove lib prefix for other systems than Android