mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Reduce exported symbols count
This commit is contained in:
parent
69c0f55966
commit
27a992ce6a
2 changed files with 6 additions and 1 deletions
|
@ -11,7 +11,10 @@ if(LDC_RUNTIME_COMPILE)
|
||||||
set(JITRT_EXTRA_FLAGS "/Zl")
|
set(JITRT_EXTRA_FLAGS "/Zl")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
set(JITRT_EXTRA_FLAGS "-fPIC -std=c++11")
|
set(JITRT_EXTRA_FLAGS "-fPIC -std=c++11 -fvisibility=hidden")
|
||||||
|
if(NOT APPLE)
|
||||||
|
set(JITRT_EXTRA_LDFLAGS "-Wl,--exclude-libs=ALL")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Sets up the targets for building the D-source jit-rt object files,
|
# Sets up the targets for building the D-source jit-rt object files,
|
||||||
|
|
|
@ -429,6 +429,8 @@ extern "C" {
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
__declspec(dllexport)
|
__declspec(dllexport)
|
||||||
|
#else
|
||||||
|
__attribute__ ((visibility ("default")))
|
||||||
#endif
|
#endif
|
||||||
void rtCompileProcessImplSo(const void *modlist_head,
|
void rtCompileProcessImplSo(const void *modlist_head,
|
||||||
const Context *context, size_t contextSize) {
|
const Context *context, size_t contextSize) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue