Disable RTTI for more game-agnostic extensions.

This commit is contained in:
Nicholas Hastings
2014-09-11 17:41:25 -07:00
parent 47450bb98c
commit e4569cb2b9
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -7,6 +7,10 @@ if SM.mysql_root:
os.path.join(SM.mysql_root, 'include'),
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-']
if builder.target_platform == 'linux' or builder.target_platform == 'mac':
binary.compiler.postlink += [