Disable RTTI for game-agnostic extensions

This commit is contained in:
Nicholas Hastings
2014-09-11 17:28:24 -07:00
parent c62e7458f9
commit 47450bb98c
6 changed files with 24 additions and 0 deletions
+4
View File
@@ -5,6 +5,10 @@ binary = SM.ExtLibrary(builder, 'topmenus.ext')
binary.compiler.cxxincludes += [
os.path.join(SM.mms_root, 'core', 'sourcehook'),
]
if binary.compiler.vendor == 'gcc' or binary.compiler.vendor == 'clang':
binary.compiler.cxxflags += ['-fno-rtti']
elif binary.compiler.vendor == 'msvc':
binary.compiler.cxxflags += ['/GR-']
binary.sources += [
'extension.cpp',