Export cling (for the JIT) and a few key functions from libCling; hide everything else.

This commit is contained in:
Axel Naumann 2016-12-20 15:38:30 +01:00 committed by sftnight
parent 2c0cad5b49
commit 53bed3dce6

View File

@ -206,6 +206,8 @@ if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
endforeach ()
endif ()
# Lots of cling is needed at runtime (e.g. Value, or Interpreter::Evaluate()).
# The JIT needs to be able to resolve these symbols from cling; unhide them.
string(REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
# The package needs to be compiler without RTTI information
if(MSVC)