[BOLT][CMake] Add merge-fdata to bolt component
authorAmir Ayupov <aaupov@fb.com>
Wed, 4 Jan 2023 01:39:55 +0000 (17:39 -0800)
committerAmir Ayupov <aaupov@fb.com>
Wed, 4 Jan 2023 01:40:36 +0000 (17:40 -0800)
commitbe08bb775533cd7240b8766f942e390c6c325386
treeaaec6ed4c4f364b35ba83edc366dac4c17783a2e
parent75c069584a3f97122c0defb292272048af5a0c2f
[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 #57249.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D139972
bolt/tools/merge-fdata/CMakeLists.txt