1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Revert "[build] normalize components dependencies"

This reverts commit c6ef6e1690d517b3401ea06b1fe46871eb67434d.

Basically, publicly linked libraries have a different semantic than components,
which link libraries privately.

Differential Revision: https://reviews.llvm.org/D91461
This commit is contained in:
serge-sans-paille 2020-11-18 19:19:36 +01:00
parent 4874abfaf5
commit be3f7186d3
5 changed files with 24 additions and 9 deletions

View File

@ -22,6 +22,10 @@ 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,3 +24,10 @@ add_llvm_component_library(LLVMJITLink
OrcTargetProcess
Support
)
target_link_libraries(LLVMJITLink
PRIVATE
LLVMObject
LLVMOrcTargetProcess
LLVMSupport
)

View File

@ -32,9 +32,6 @@ add_llvm_component_library(LLVMOrcJIT
intrinsics_gen
LINK_COMPONENTS
Analysis
BitReader
BitWriter
Core
ExecutionEngine
JITLink
@ -51,3 +48,11 @@ add_llvm_component_library(LLVMOrcJIT
add_subdirectory(Shared)
add_subdirectory(TargetProcess)
target_link_libraries(LLVMOrcJIT
PRIVATE
LLVMAnalysis
LLVMBitReader
LLVMBitWriter
LLVMPasses
)

View File

@ -3,7 +3,6 @@ add_llvm_component_library(LLVMFileCheck
ADDITIONAL_HEADER_DIRS
"${LLVM_MAIN_INCLUDE_DIR}/llvm/FileCheck"
LINK_COMPONENTS
Support
)
target_link_libraries(LLVMFileCheck LLVMSupport)

View File

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