File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,18 @@ if (${ENZYME_EXTERNAL_SHARED_LIB})
162
162
execute_process (COMMAND ${LLVM_TOOLS_BINARY_DIR} /llvm-config --libs all
163
163
OUTPUT_VARIABLE llvm_libraries )
164
164
string (STRIP "${llvm_libraries} " llvm_libraries )
165
+ message (STATUS "Linking against LLVM libraries: ${llvm_libraries} " )
165
166
# In theory, adding --libs should also add all the -l flags,
166
167
# but it isn't picked up correctly by clang, so we call target_link_libraries
167
168
execute_process (COMMAND ${LLVM_TOOLS_BINARY_DIR} /llvm-config --ldflags
168
169
OUTPUT_VARIABLE llvm_ldflags )
169
170
string (STRIP "${llvm_ldflags} " llvm_ldflags )
171
+ message (STATUS "Linking against LLVM ldflags: ${llvm_ldflags} " )
170
172
set_target_properties (Enzyme-${LLVM_VERSION_MAJOR} PROPERTIES LINK_FLAGS ${llvm_ldflags} )
171
173
target_link_libraries (Enzyme-${LLVM_VERSION_MAJOR} PRIVATE ${llvm_libraries} )
174
+
175
+ llvm_map_components_to_libnames (llvm_librariess Passes Support )
176
+ target_link_libraries (Enzyme-${LLVM_VERSION_MAJOR} PRIVATE ${llvm_librariess} )
172
177
endif ()
173
178
install (TARGETS Enzyme-${LLVM_VERSION_MAJOR}
174
179
EXPORT EnzymeTargets
You can’t perform that action at this time.
0 commit comments