mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[build] normalize components dependencies
Use LINK_COMPONENTS instead of explicit target_link_libraries for components. This avoids redundancy and potential inconsistencies. Differential Revision: https://reviews.llvm.org/D91461
This commit is contained in:
parent
76f25ae217
commit
d3fa59a7b6
@ -22,10 +22,6 @@ add_llvm_component_library(LLVMExecutionEngine
|
||||
Target
|
||||
)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_link_libraries(LLVMExecutionEngine PUBLIC LLVMRuntimeDyld)
|
||||
endif()
|
||||
|
||||
add_subdirectory(Interpreter)
|
||||
add_subdirectory(JITLink)
|
||||
add_subdirectory(MCJIT)
|
||||
|
@ -24,10 +24,3 @@ add_llvm_component_library(LLVMJITLink
|
||||
OrcTargetProcess
|
||||
Support
|
||||
)
|
||||
|
||||
target_link_libraries(LLVMJITLink
|
||||
PRIVATE
|
||||
LLVMObject
|
||||
LLVMOrcTargetProcess
|
||||
LLVMSupport
|
||||
)
|
||||
|
@ -32,6 +32,9 @@ add_llvm_component_library(LLVMOrcJIT
|
||||
intrinsics_gen
|
||||
|
||||
LINK_COMPONENTS
|
||||
Analysis
|
||||
BitReader
|
||||
BitWriter
|
||||
Core
|
||||
ExecutionEngine
|
||||
JITLink
|
||||
@ -48,11 +51,3 @@ add_llvm_component_library(LLVMOrcJIT
|
||||
|
||||
add_subdirectory(Shared)
|
||||
add_subdirectory(TargetProcess)
|
||||
|
||||
target_link_libraries(LLVMOrcJIT
|
||||
PRIVATE
|
||||
LLVMAnalysis
|
||||
LLVMBitReader
|
||||
LLVMBitWriter
|
||||
LLVMPasses
|
||||
)
|
||||
|
@ -3,6 +3,7 @@ add_llvm_component_library(LLVMFileCheck
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
"${LLVM_MAIN_INCLUDE_DIR}/llvm/FileCheck"
|
||||
)
|
||||
|
||||
target_link_libraries(LLVMFileCheck LLVMSupport)
|
||||
LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
@ -12,7 +12,7 @@ add_llvm_component_library(LLVMFrontendOpenACC
|
||||
DEPENDS
|
||||
acc_gen
|
||||
acc_cpp
|
||||
|
||||
LINK_COMPONENTS
|
||||
Support
|
||||
)
|
||||
|
||||
target_link_libraries(LLVMFrontendOpenACC LLVMSupport)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user