[BOLT] Fix (part of) dylib compatibility

Non-LLVM components should not be listed as part of LLVM_LINK_COMPONENTS.

Differential Revision: https://reviews.llvm.org/D134278
This commit is contained in:
serge-sans-paille 2022-09-20 14:45:11 +02:00
parent 3ca61941c1
commit 9029ed2e4b
3 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
BOLTCore
MC
Support
AArch64Desc
@ -12,6 +11,8 @@ add_llvm_library(LLVMBOLTTargetAArch64
AArch64CommonTableGen
)
target_link_libraries(LLVMBOLTTargetAArch64 PRIVATE LLVMBOLTCore)
include_directories(
${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64
${LLVM_BINARY_DIR}/lib/Target/AArch64

View File

@ -1,6 +1,4 @@
set(LLVM_LINK_COMPONENTS
BOLTCore
BOLTUtils
MC
MCDisassembler
Support
@ -15,6 +13,8 @@ add_llvm_library(LLVMBOLTTargetX86
X86CommonTableGen
)
target_link_libraries(LLVMBOLTTargetX86 PRIVATE LLVMBOLTCore LLVMBOLTUtils)
include_directories(
${LLVM_MAIN_SRC_DIR}/lib/Target/X86
${LLVM_BINARY_DIR}/lib/Target/X86

View File

@ -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()