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
@@ -2,6 +2,10 @@
import os
binary = SM.ExtLibrary(builder, 'geoip.ext')
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 == 'windows':
binary.compiler.postlink += ['wsock32.lib']