diff options
author | Rafael Auler <rafaelauler@fb.com> | 2021-12-15 10:16:58 -0800 |
---|---|---|
committer | Maksim Panchenko <maks@fb.com> | 2021-12-15 10:16:58 -0800 |
commit | 5fc8adb529d667131c6bcb413cf0621f5b5d20c4 (patch) | |
tree | 64421b49e6ee4153c8e4b6e8beff1cd7239ca340 /bolt/tools/driver | |
parent | 6aa735ceaf63150690923e9e5e0319eace3056f8 (diff) | |
download | llvm-5fc8adb529d667131c6bcb413cf0621f5b5d20c4.zip llvm-5fc8adb529d667131c6bcb413cf0621f5b5d20c4.tar.gz llvm-5fc8adb529d667131c6bcb413cf0621f5b5d20c4.tar.bz2 |
Add bolt target to cmake
Summary:
Create a new high-level target named bolt that builds all
BOLT artifacts, as well as a install-bolt target that installs them.
(cherry picked from FBD33133002)
Diffstat (limited to 'bolt/tools/driver')
-rw-r--r-- | bolt/tools/driver/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bolt/tools/driver/CMakeLists.txt b/bolt/tools/driver/CMakeLists.txt index f6f0016..264a89f 100644 --- a/bolt/tools/driver/CMakeLists.txt +++ b/bolt/tools/driver/CMakeLists.txt @@ -25,4 +25,22 @@ add_llvm_tool_symlink(perf2bolt llvm-bolt) add_llvm_tool_symlink(llvm-boltdiff llvm-bolt) add_llvm_tool_symlink(llvm-bolt-heatmap llvm-bolt) +set(BOLT_DEPENDS + llvm-bolt + perf2bolt + llvm-boltdiff + llvm-bolt-heatmap + ) + +add_custom_target(bolt DEPENDS ${BOLT_DEPENDS}) +install(PROGRAMS + ${CMAKE_BINARY_DIR}/bin/llvm-bolt + ${CMAKE_BINARY_DIR}/bin/perf2bolt + ${CMAKE_BINARY_DIR}/bin/llvm-boltdiff + ${CMAKE_BINARY_DIR}/bin/llvm-bolt-heatmap + TYPE BIN + COMPONENT bolt + ) +add_llvm_install_targets(install-bolt DEPENDS bolt COMPONENT bolt) + include_directories( ${BOLT_SOURCE_DIR}/lib ) |