2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

filesystem: compile with rtti, but still disable exceptions

This commit is contained in:
Alibek Omarov 2024-11-04 13:19:21 +03:00
parent b1915106b0
commit 96b95db7c8

View File

@ -4,12 +4,8 @@ def options(opt):
pass pass
def configure(conf): def configure(conf):
nortti = { if conf.env.COMPILER_CXX != 'msvc':
'msvc': ['/GR-'], conf.env.append_unique('CXXFLAGS', ['-fno-exceptions'])
'default': ['-fno-rtti', '-fno-exceptions']
}
conf.env.append_unique('CXXFLAGS', conf.get_flags_by_compiler(nortti, conf.env.COMPILER_CC))
if conf.env.DEST_OS == 'android': if conf.env.DEST_OS == 'android':
conf.check_cc(lib='android') conf.check_cc(lib='android')
elif conf.env.cxxshlib_PATTERN.startswith('lib'): # remove lib prefix for other systems than Android elif conf.env.cxxshlib_PATTERN.startswith('lib'): # remove lib prefix for other systems than Android