Explicitly disable linking against shared LLVM

This commit is contained in:
Stephan Lachnit 2023-08-06 21:48:35 +02:00 committed by jenkins
parent 4261b067ab
commit c0e9de73bf

View File

@ -417,7 +417,8 @@ macro(add_cling_library name)
endif()
endif()
llvm_add_library(${name} ${ARG_ENABLE_SHARED} ${ARG_UNPARSED_ARGUMENTS} ${srcs})
# Set DISABLE_LLVM_LINK_LLVM_DYLIB to disable linking against shared LLVM
llvm_add_library(${name} ${ARG_ENABLE_SHARED} DISABLE_LLVM_LINK_LLVM_DYLIB ${ARG_UNPARSED_ARGUMENTS} ${srcs})
if (MSVC AND cling_ex_file_match)
# /EHs because cling_runtime_internal_throwIfInvalidPointer is extern C