From 881a839896559bfbac5749c5dc8692211cd3903c Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Fri, 12 Sep 2014 09:40:45 -0400 Subject: [PATCH] Fix rtti issue --- AMBuildScript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/AMBuildScript b/AMBuildScript index f0c3981..edaf5e9 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -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):