From b7b9c611cfc2e3ae38f807df20632d6d07c5dfbd Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 1 Aug 2022 13:34:44 +0300 Subject: [PATCH] filesystem: wscript: disable RTTI and exceptions(useful on Android), we don't need it here. Link as C++ library. --- filesystem/wscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/filesystem/wscript b/filesystem/wscript index b96d00d8..730facd2 100644 --- a/filesystem/wscript +++ b/filesystem/wscript @@ -4,12 +4,17 @@ 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.cxxshlib_PATTERN.startswith('lib'): conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:] def build(bld): bld.shlib(target = 'filesystem_stdio', - features = 'cxx c', + features = 'cxx', source = bld.path.ant_glob(['*.c', '*.cpp']), includes = ['.', '../common', '../public', '../engine'], use = ['public'],