[PATCH] D134278: [BOLT] Fix (part of) dylib compatibility
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 00:19:16 PDT 2022
serge-sans-paille updated this revision to Diff 461801.
serge-sans-paille retitled this revision from "[bolt] Fix (part of) dylib compatibility" to "[BOLT] Fix (part of) dylib compatibility".
serge-sans-paille added a comment.
Address reviewers' comments
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134278/new/
https://reviews.llvm.org/D134278
Files:
bolt/lib/Target/AArch64/CMakeLists.txt
bolt/lib/Target/X86/CMakeLists.txt
bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
Index: bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
===================================================================
--- bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
+++ bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
@@ -1,8 +1,11 @@
set(LLVM_LINK_COMPONENTS
- BOLTRewrite
${LLVM_TARGETS_TO_BUILD}
)
add_llvm_fuzzer(llvm-bolt-fuzzer
llvm-bolt-fuzzer.cpp
)
+
+if (TARGET llvm-bolt-fuzzer)
+ target_link_libraries(llvm-bolt-fuzzer PRIVATE LLVMBOLTRewrite)
+endif()
Index: bolt/lib/Target/X86/CMakeLists.txt
===================================================================
--- bolt/lib/Target/X86/CMakeLists.txt
+++ bolt/lib/Target/X86/CMakeLists.txt
@@ -1,6 +1,4 @@
set(LLVM_LINK_COMPONENTS
- BOLTCore
- BOLTUtils
MC
MCDisassembler
Support
@@ -15,6 +13,8 @@
X86CommonTableGen
)
+target_link_libraries(LLVMBOLTTargetX86 PRIVATE LLVMBOLTCore LLVMBOLTUtils)
+
include_directories(
${LLVM_MAIN_SRC_DIR}/lib/Target/X86
${LLVM_BINARY_DIR}/lib/Target/X86
Index: bolt/lib/Target/AArch64/CMakeLists.txt
===================================================================
--- bolt/lib/Target/AArch64/CMakeLists.txt
+++ bolt/lib/Target/AArch64/CMakeLists.txt
@@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
- BOLTCore
MC
Support
AArch64Desc
@@ -12,6 +11,8 @@
AArch64CommonTableGen
)
+target_link_libraries(LLVMBOLTTargetAArch64 PRIVATE LLVMBOLTCore)
+
include_directories(
${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64
${LLVM_BINARY_DIR}/lib/Target/AArch64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134278.461801.patch
Type: text/x-patch
Size: 1502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220921/2c0bb7b8/attachment.bin>
More information about the llvm-commits
mailing list