aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bolt/CMakeLists.txt4
-rw-r--r--bolt/tools/driver/CMakeLists.txt18
2 files changed, 20 insertions, 2 deletions
diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt
index 7794f32b..4348130 100644
--- a/bolt/CMakeLists.txt
+++ b/bolt/CMakeLists.txt
@@ -41,10 +41,10 @@ else()
BUILD_ALWAYS True
)
install(CODE "execute_process\(COMMAND \${CMAKE_COMMAND} -DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX} -P ${CMAKE_CURRENT_BINARY_DIR}/bolt_rt-bins/cmake_install.cmake \)"
- COMPONENT bolt_rt)
+ COMPONENT bolt)
add_llvm_install_targets(install-bolt_rt
DEPENDS bolt_rt
- COMPONENT bolt_rt)
+ COMPONENT bolt)
endif()
# Get the current git revision for BOLT.
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 )