Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions llvm/tools/llvm-shlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ if(LLVM_BUILD_LLVM_DYLIB)
llvm_install_library_symlink(LLVM-${LLVM_VERSION_MAJOR}${LLVM_VERSION_SUFFIX} $<TARGET_FILE_NAME:LLVM> SHARED FULL_DEST COMPONENT LLVM)
endif()

if (MINGW OR CYGWIN)
# The LLVM DLL is supposed to export all symbols (except for ones
# that are explicitly hidden). Normally, this is what happens anyway, but
# if there are symbols that are marked explicitly as dllexport, we'd only
# export them and nothing else. Therefore, add --export-all-symbols to
# make sure we export all symbols despite potential dllexports.
target_link_options(LLVM PRIVATE LINKER:--export-all-symbols)
endif()

list(REMOVE_DUPLICATES LIB_NAMES)
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(LIB_NAMES -Wl,-all_load ${LIB_NAMES})
Expand Down
Loading