2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-21 17:37:32 +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
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