llvm-project/bolt/tools/driver/CMakeLists.txt

29 lines
489 B
CMake
Raw Normal View History

set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
BOLTProfile
BOLTRewrite
BOLTUtils
MC
Object
Support
)
if (BOLT_ENABLE_RUNTIME)
set(BOLT_DRIVER_DEPS "bolt_rt")
else()
set(BOLT_DRIVER_DEPS "")
endif()
add_llvm_tool(llvm-bolt
llvm-bolt.cpp
DEPENDS
${BOLT_DRIVER_DEPS}
)
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 )