mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-24 18:59:50 +01:00
filesystem: compile with rtti, but still disable exceptions
This commit is contained in:
parent
b1915106b0
commit
96b95db7c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user