Skip to content

Commit 733f7b5

Browse files
author
serge-sans-paille
committed
Revert "[build] normalize components dependencies"
This reverts commit c6ef6e1. Basically, publicly linked libraries have a different semantic than components, which link libraries privately. Differential Revision: https://reviews.llvm.org/D91461
1 parent 8b9e6dc commit 733f7b5

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

llvm/lib/ExecutionEngine/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ add_llvm_component_library(LLVMExecutionEngine
2222
Target
2323
)
2424

25+
if(BUILD_SHARED_LIBS)
26+
target_link_libraries(LLVMExecutionEngine PUBLIC LLVMRuntimeDyld)
27+
endif()
28+
2529
add_subdirectory(Interpreter)
2630
add_subdirectory(JITLink)
2731
add_subdirectory(MCJIT)

llvm/lib/ExecutionEngine/JITLink/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ add_llvm_component_library(LLVMJITLink
2424
OrcTargetProcess
2525
Support
2626
)
27+
28+
target_link_libraries(LLVMJITLink
29+
PRIVATE
30+
LLVMObject
31+
LLVMOrcTargetProcess
32+
LLVMSupport
33+
)

llvm/lib/ExecutionEngine/Orc/CMakeLists.txt

+8-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ add_llvm_component_library(LLVMOrcJIT
3232
intrinsics_gen
3333

3434
LINK_COMPONENTS
35-
Analysis
36-
BitReader
37-
BitWriter
3835
Core
3936
ExecutionEngine
4037
JITLink
@@ -51,3 +48,11 @@ add_llvm_component_library(LLVMOrcJIT
5148

5249
add_subdirectory(Shared)
5350
add_subdirectory(TargetProcess)
51+
52+
target_link_libraries(LLVMOrcJIT
53+
PRIVATE
54+
LLVMAnalysis
55+
LLVMBitReader
56+
LLVMBitWriter
57+
LLVMPasses
58+
)

llvm/lib/FileCheck/CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ add_llvm_component_library(LLVMFileCheck
33

44
ADDITIONAL_HEADER_DIRS
55
"${LLVM_MAIN_INCLUDE_DIR}/llvm/FileCheck"
6-
7-
LINK_COMPONENTS
8-
Support
96
)
7+
8+
target_link_libraries(LLVMFileCheck LLVMSupport)

llvm/lib/Frontend/OpenACC/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ add_llvm_component_library(LLVMFrontendOpenACC
1212
DEPENDS
1313
acc_gen
1414
acc_cpp
15-
16-
LINK_COMPONENTS
17-
Support
1815
)
16+
17+
target_link_libraries(LLVMFrontendOpenACC LLVMSupport)
18+

0 commit comments

Comments
 (0)