Re-apply "Only define LLVM_EXTERNAL_VISIBILITY when building libLLVM dylib"
With a fix for BUILD_SHARED_LIBS. Original commit message: When building LLVM static libraries, we should not make symbols more visible than CMAKE_CXX_VISIBILITY_PRESET, since the goal may be to have a purely hidden llvm embedded in another library. Instead, we only define LLVM_EXTERNAL_VISIBILITY for the dynamic library build (when LLVM_BUILD_LLVM_DYLIB=YES or BUILD_SHARED_LIBS=YES). Original Review: https://reviews.llvm.org/D113610 Differential Revision: https://reviews.llvm.org/D115825
Loading
Please register or sign in to comment