1 set(LLVM_LINK_COMPONENTS
2 ${LLVM_TARGETS_TO_BUILD}
8 if (BOLT_ENABLE_RUNTIME)
9 set(BOLT_DRIVER_DEPS "bolt_rt")
11 set(BOLT_DRIVER_DEPS "")
14 add_bolt_tool(llvm-bolt
21 target_link_libraries(llvm-bolt
28 add_bolt_tool_symlink(perf2bolt llvm-bolt)
29 add_bolt_tool_symlink(llvm-boltdiff llvm-bolt)
37 add_custom_target(bolt DEPENDS ${BOLT_DEPENDS})
39 ${CMAKE_BINARY_DIR}/bin/llvm-bolt
40 ${CMAKE_BINARY_DIR}/bin/perf2bolt
41 ${CMAKE_BINARY_DIR}/bin/llvm-boltdiff
42 DESTINATION ${CMAKE_INSTALL_BINDIR}
45 add_llvm_install_targets(install-bolt DEPENDS bolt COMPONENT bolt)
46 set_target_properties(bolt PROPERTIES FOLDER "BOLT")
47 set_target_properties(install-bolt PROPERTIES FOLDER "BOLT")
49 include_directories( ${BOLT_SOURCE_DIR}/lib )