2
0
mirror of https://github.com/rehlds/reapi.git synced 2024-12-25 14:15:51 +03:00

Enable RTTI

Adjust version script
This commit is contained in:
s1lentq 2020-12-16 18:48:33 +07:00
parent 2491fb9865
commit 14c7411b39
3 changed files with 24 additions and 8 deletions

View File

@ -48,7 +48,7 @@ void setupToolchain(NativeBinarySpec b) {
pchHeader: 'precompiled.h',
pchSourceSet: 'reapi_pch'
)
cfg.compilerOptions.args '/Ob2', '/Oi', '/GF', '/GR-', '/GS-'
cfg.compilerOptions.args '/Ob2', '/Oi', '/GF', '/GS-'
cfg.singleDefines('_CRT_SECURE_NO_WARNINGS')
} else if (cfg instanceof GccToolchainConfig) {
if (!useGcc) {
@ -74,7 +74,7 @@ void setupToolchain(NativeBinarySpec b) {
cfg.linkerOptions.args '-Wl,--version-script=../version_script.lds', '-Wl,--gc-sections'
cfg.compilerOptions.args '-ffunction-sections', '-fdata-sections' // Remove unused code and data
cfg.compilerOptions.args '-Wall', '-Wno-unknown-pragmas', '-msse2', '-fomit-frame-pointer', '-fvisibility=default', '-fvisibility-inlines-hidden', '-fno-rtti', '-g0', '-s', '-fno-exceptions'
cfg.compilerOptions.args '-Wall', '-Wno-unknown-pragmas', '-msse2', '-fomit-frame-pointer', '-fvisibility=default', '-fvisibility-inlines-hidden', '-g0', '-s', '-fno-exceptions'
}
ToolchainConfigUtils.apply(project, cfg, b)

View File

@ -20,7 +20,7 @@ rootProject.ext.createGccConfig = { boolean release, BinaryKind binKind ->
),
linkerOptions: new GccToolchainConfig.LinkerOptions(
stripSymbolTable: false,
stripSymbolTable: true,
staticLibGcc: false,
staticLibStdCpp: true,
),

View File

@ -1,8 +1,24 @@
REAPI_ABI_1.0 {
global:
Meta_*;
GiveFnptrsToDll;
AMXX_*;
local:
*;
local:
_Zn*;
_Zd*;
extern "C++" {
regfunc::*;
*lambda*;
_callVoidForward*;
_callForward*;
*std::*;
*__cxxabi*::*;
*__gnu_cxx::*;
__cxa_*;
_txnal_*;
__dynamic_cast;
__gxx_personality_*;
__gcclibcxx_demangle_callback;
*_libm_*;
*_intel_*;
};
};