Skip to content

Commit be08bb7

Browse files
committed
[BOLT][CMake] Add merge-fdata to bolt component
Build and install `merge-fdata` tool as part of `bolt` component: ``` $ ninja bolt # builds llvm-bolt, perf2bolt and merge-fdata $ cmake --install . --component bolt --prefix $HOME/test-install-bolt -- Install configuration: "Release" -- Install configuration: "Release" -- Installing: /home/aaupov/test-install-bolt/lib/libbolt_rt_instr.a -- Installing: /home/aaupov/test-install-bolt/lib/libbolt_rt_hugify.a -- Installing: /home/aaupov/test-install-bolt/lib/libbolt_rt_instr_osx.a -- Installing: /home/aaupov/test-install-bolt/bin/llvm-bolt -- Installing: /home/aaupov/test-install-bolt/bin/perf2bolt -- Installing: /home/aaupov/test-install-bolt/bin/llvm-boltdiff -- Installing: /home/aaupov/test-install-bolt/bin/merge-fdata ``` Fixes llvm#57249. Reviewed By: #bolt, rafauler Differential Revision: https://reviews.llvm.org/D139972
1 parent 75c0695 commit be08bb7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bolt/tools/merge-fdata/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ add_bolt_tool(merge-fdata
1010
)
1111
set_target_properties(merge-fdata PROPERTIES FOLDER "BOLT")
1212

13+
add_dependencies(bolt merge-fdata)
14+
install(PROGRAMS
15+
${CMAKE_BINARY_DIR}/bin/merge-fdata
16+
DESTINATION ${CMAKE_INSTALL_BINDIR}
17+
COMPONENT bolt
18+
)
19+
1320
# Emit relocations for BOLT meta test (bolt/test/runtime/meta-merge-fdata.test)
1421
if (BOLT_INCLUDE_TESTS AND UNIX AND NOT APPLE)
1522
target_link_options(merge-fdata PRIVATE LINKER:--emit-relocs)

0 commit comments

Comments
 (0)