mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +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")
|
||||
|
||||
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()
|
||||
|
||||
# Sets up the targets for building the D-source jit-rt object files,
|
||||
|
|
|
@ -429,6 +429,8 @@ extern "C" {
|
|||
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport)
|
||||
#else
|
||||
__attribute__ ((visibility ("default")))
|
||||
#endif
|
||||
void rtCompileProcessImplSo(const void *modlist_head,
|
||||
const Context *context, size_t contextSize) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue