1
0
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:
serge-sans-paille 2020-11-13 22:45:55 +01:00
parent 76f25ae217
commit d3fa59a7b6
5 changed files with 9 additions and 24 deletions

View File

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

View File

@ -24,10 +24,3 @@ add_llvm_component_library(LLVMJITLink
OrcTargetProcess
Support
)
target_link_libraries(LLVMJITLink
PRIVATE
LLVMObject
LLVMOrcTargetProcess
LLVMSupport
)

View File

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

View File

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

View File

@ -12,7 +12,7 @@ add_llvm_component_library(LLVMFrontendOpenACC
DEPENDS
acc_gen
acc_cpp
LINK_COMPONENTS
Support
)
target_link_libraries(LLVMFrontendOpenACC LLVMSupport)