Disable RTTI for Loader, Logic, and JIT bins
This commit is contained in:
parent
f0fe427fee
commit
c62e7458f9
@ -19,6 +19,12 @@ if builder.target_platform == 'linux':
|
|||||||
elif builder.target_platform == 'mac':
|
elif builder.target_platform == 'mac':
|
||||||
binary.compiler.cflags += ['-Wno-deprecated-declarations']
|
binary.compiler.cflags += ['-Wno-deprecated-declarations']
|
||||||
binary.compiler.postlink += ['-framework', 'CoreServices']
|
binary.compiler.postlink += ['-framework', 'CoreServices']
|
||||||
|
|
||||||
|
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 += [
|
binary.sources += [
|
||||||
'common_logic.cpp',
|
'common_logic.cpp',
|
||||||
'smn_adt_array.cpp',
|
'smn_adt_array.cpp',
|
||||||
|
@ -13,6 +13,10 @@ binary.compiler.cxxincludes += [
|
|||||||
os.path.join(SM.mms_root, 'core'),
|
os.path.join(SM.mms_root, 'core'),
|
||||||
os.path.join(SM.mms_root, 'sourcehook')
|
os.path.join(SM.mms_root, '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.compiler.linkflags += extra_ldflags
|
binary.compiler.linkflags += extra_ldflags
|
||||||
binary.sources = [
|
binary.sources = [
|
||||||
'loader.cpp'
|
'loader.cpp'
|
||||||
|
@ -17,6 +17,11 @@ binary.compiler.includes += [
|
|||||||
os.path.join(builder.sourcePath, 'sourcepawn', 'include'),
|
os.path.join(builder.sourcePath, 'sourcepawn', 'include'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
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':
|
if builder.target_platform == 'linux':
|
||||||
binary.compiler.postlink += ['-lpthread', '-lrt']
|
binary.compiler.postlink += ['-lpthread', '-lrt']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user