2021-10-09 02:47:10 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
|
|
BOLTProfile
|
|
|
|
BOLTRewrite
|
|
|
|
BOLTUtils
|
|
|
|
MC
|
|
|
|
Object
|
|
|
|
Support
|
|
|
|
)
|
|
|
|
|
2021-10-27 03:26:23 +08:00
|
|
|
if (BOLT_ENABLE_RUNTIME)
|
|
|
|
set(BOLT_DRIVER_DEPS "bolt_rt")
|
|
|
|
else()
|
|
|
|
set(BOLT_DRIVER_DEPS "")
|
|
|
|
endif()
|
|
|
|
|
2021-10-09 02:47:10 +08:00
|
|
|
add_llvm_tool(llvm-bolt
|
|
|
|
llvm-bolt.cpp
|
|
|
|
|
|
|
|
DEPENDS
|
2021-10-27 03:26:23 +08:00
|
|
|
${BOLT_DRIVER_DEPS}
|
2021-10-09 02:47:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_tool_symlink(perf2bolt llvm-bolt)
|
|
|
|
add_llvm_tool_symlink(llvm-boltdiff llvm-bolt)
|
|
|
|
add_llvm_tool_symlink(llvm-bolt-heatmap llvm-bolt)
|
|
|
|
|
|
|
|
include_directories( ${BOLT_SOURCE_DIR}/lib )
|