Fix rtti issue

This commit is contained in:
Dr!fter 2014-09-12 09:40:45 -04:00
parent 709e3cd03b
commit 881a839896

View File

@ -214,7 +214,12 @@ class DHooksConfig(object):
cxx.cxxflags += ['-stdlib=libstdc++']
elif builder.target_platform == 'windows':
cxx.defines += ['WIN32', '_WINDOWS']
if cxx.vendor == 'gcc' or cxx.vendor == 'clang':
cxx.cxxflags += ['-fno-rtti']
elif cxx.vendor == 'msvc':
cxx.cxxflags += ['/GR-']
cxx.defines += ['META_NO_HL2SDK']
def IncludeSDKs(self, builder):