TV/cmake: explicitly link to LLVMTransformUtils
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -151,7 +151,7 @@ target_link_libraries(alive PRIVATE ${ALIVE_LIBS})
add_library(alive2 SHARED ${IR_SRCS} ${SMT_SRCS} ${TOOLS_SRCS} ${UTIL_SRCS} ${LLVM_UTIL_SRCS})
if (BUILD_LLVM_UTILS OR BUILD_TV)
- llvm_map_components_to_libnames(llvm_libs support core irreader analysis passes)
+ llvm_map_components_to_libnames(llvm_libs support core irreader analysis passes transformutils)
target_link_libraries(alive2 PRIVATE ${llvm_libs})
target_link_libraries(alive-tv PRIVATE ${ALIVE_LIBS_LLVM} ${llvm_libs})
endif()

TV/cmake: explicitly link to LLVMTransformUtils (#291)