mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Fix interaction of static plugins with -DLLVM_LINK_LLVM_DYLIB=ON.
We should link static plugins into libLLVM.so; they shouldn't depend on libLLVM.so. Fixes https://bugs.llvm.org/show_bug.cgi?id=45571 Differential Revision: https://reviews.llvm.org/D78332
This commit is contained in:
parent
5de3bd0ae1
commit
768b3b5fd4
@ -883,7 +883,7 @@ function(add_llvm_pass_plugin name)
|
||||
list(REMOVE_ITEM ARG_UNPARSED_ARGUMENTS BUILDTREE_ONLY)
|
||||
# process_llvm_pass_plugins takes care of the actual linking, just create an
|
||||
# object library as of now
|
||||
add_llvm_library(${name} OBJECT ${ARG_UNPARSED_ARGUMENTS})
|
||||
add_llvm_component_library(${name} OBJECT ${ARG_UNPARSED_ARGUMENTS})
|
||||
target_compile_definitions(${name} PRIVATE LLVM_${name_upper}_LINK_INTO_TOOLS)
|
||||
set_property(TARGET ${name} APPEND PROPERTY COMPILE_DEFINITIONS LLVM_LINK_INTO_TOOLS)
|
||||
if (TARGET intrinsics_gen)
|
||||
|
Loading…
Reference in New Issue
Block a user