File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ function(add_llvm_pass_plugin name)
883
883
list (REMOVE_ITEM ARG_UNPARSED_ARGUMENTS BUILDTREE_ONLY)
884
884
# process_llvm_pass_plugins takes care of the actual linking, just create an
885
885
# object library as of now
886
- add_llvm_library (${name} OBJECT ${ARG_UNPARSED_ARGUMENTS} )
886
+ add_llvm_component_library (${name} OBJECT ${ARG_UNPARSED_ARGUMENTS} )
887
887
target_compile_definitions (${name} PRIVATE LLVM_${name_upper} _LINK_INTO_TOOLS)
888
888
set_property (TARGET ${name} APPEND PROPERTY COMPILE_DEFINITIONS LLVM_LINK_INTO_TOOLS)
889
889
if (TARGET intrinsics_gen)
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ if (GPU_CODEGEN)
107
107
llvm_map_components_to_libnames(nvptx_libs NVPTX)
108
108
endif ()
109
109
110
- if (LLVM_LINK_LLVM_DYLIB)
110
+ if (LLVM_LINK_LLVM_DYLIB AND NOT LLVM_POLLY_LINK_INTO_TOOLS )
111
111
# The shlib/dylib contains all the LLVM components
112
112
# (including NVPTX is enabled) already. Adding them to target_link_libraries
113
113
# would cause them being twice in the address space
You can’t perform that action at this time.
0 commit comments