diff options
author | Amir Ayupov <aaupov@users.noreply.github.com> | 2022-05-13 13:14:45 -0700 |
---|---|---|
committer | Amir Ayupov <aaupov@fb.com> | 2022-05-13 13:27:21 -0700 |
commit | bdba3d091c66e3ab87fe0d631d90771b747ddf0d (patch) | |
tree | e72f040402556f966e585f80d55121a88d41378f /bolt/tools | |
parent | f0792c715dc5c2dc34793f11b9e91de3efa48979 (diff) | |
download | llvm-bdba3d091c66e3ab87fe0d631d90771b747ddf0d.tar.gz |
[BOLT][CMAKE] Fix DYLIB build
Move BOLT libraries out of `LLVM_LINK_COMPONENTS` to `target_link_libraries`.
Addresses issue #55432.
Reviewed By: rafauler
Differential Revision: https://reviews.llvm.org/D125568
Diffstat (limited to 'bolt/tools')
-rw-r--r-- | bolt/tools/driver/CMakeLists.txt | 10 | ||||
-rw-r--r-- | bolt/tools/heatmap/CMakeLists.txt | 10 |
2 files changed, 14 insertions, 6 deletions
diff --git a/bolt/tools/driver/CMakeLists.txt b/bolt/tools/driver/CMakeLists.txt index 462381bd791a..2338ccec11d2 100644 --- a/bolt/tools/driver/CMakeLists.txt +++ b/bolt/tools/driver/CMakeLists.txt @@ -1,8 +1,5 @@ set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} - BOLTProfile - BOLTRewrite - BOLTUtils MC Object Support @@ -21,6 +18,13 @@ add_llvm_tool(llvm-bolt ${BOLT_DRIVER_DEPS} ) +target_link_libraries(llvm-bolt + PRIVATE + LLVMBOLTProfile + LLVMBOLTRewrite + LLVMBOLTUtils + ) + add_llvm_tool_symlink(perf2bolt llvm-bolt) add_llvm_tool_symlink(llvm-boltdiff llvm-bolt) diff --git a/bolt/tools/heatmap/CMakeLists.txt b/bolt/tools/heatmap/CMakeLists.txt index 2a04704683f6..820b268125e8 100644 --- a/bolt/tools/heatmap/CMakeLists.txt +++ b/bolt/tools/heatmap/CMakeLists.txt @@ -1,8 +1,5 @@ set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} - BOLTProfile - BOLTRewrite - BOLTUtils MC Object Support @@ -12,4 +9,11 @@ add_llvm_tool(llvm-bolt-heatmap heatmap.cpp ) +target_link_libraries(llvm-bolt-heatmap + PRIVATE + LLVMBOLTProfile + LLVMBOLTRewrite + LLVMBOLTUtils + ) + set_target_properties(llvm-bolt-heatmap PROPERTIES FOLDER "BOLT") |