mirror of
https://github.com/rehlds/reapi.git
synced 2024-12-25 06:05:50 +03:00
Enable RTTI
Adjust version script
This commit is contained in:
parent
2491fb9865
commit
14c7411b39
@ -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)
|
||||
|
@ -20,7 +20,7 @@ rootProject.ext.createGccConfig = { boolean release, BinaryKind binKind ->
|
||||
),
|
||||
|
||||
linkerOptions: new GccToolchainConfig.LinkerOptions(
|
||||
stripSymbolTable: false,
|
||||
stripSymbolTable: true,
|
||||
staticLibGcc: false,
|
||||
staticLibStdCpp: true,
|
||||
),
|
||||
|
@ -1,8 +1,24 @@
|
||||
REAPI_ABI_1.0 {
|
||||
global:
|
||||
Meta_*;
|
||||
GiveFnptrsToDll;
|
||||
AMXX_*;
|
||||
local:
|
||||
global:
|
||||
*;
|
||||
local:
|
||||
_Zn*;
|
||||
_Zd*;
|
||||
|
||||
extern "C++" {
|
||||
regfunc::*;
|
||||
*lambda*;
|
||||
_callVoidForward*;
|
||||
_callForward*;
|
||||
*std::*;
|
||||
*__cxxabi*::*;
|
||||
*__gnu_cxx::*;
|
||||
__cxa_*;
|
||||
_txnal_*;
|
||||
__dynamic_cast;
|
||||
__gxx_personality_*;
|
||||
__gcclibcxx_demangle_callback;
|
||||
*_libm_*;
|
||||
*_intel_*;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user