Skip to content

Commit 83115c1

Browse files
committed
Explicitly link MLIRCAPIExecutionEngine to LLVM components
Add explicit links from `MLIRCAPIExecutionEngine` to the LLVM components that are used directly in the code. This fixes link failures with `-DBUILD_SHARED_LIBS=ON`, since `MLIRExecutionEngine` no longer transitively provides these.
1 parent 3d2a9bb commit 83115c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlir/lib/CAPI/ExecutionEngine/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ set(LLVM_LINK_COMPONENTS
77
add_mlir_upstream_c_api_library(MLIRCAPIExecutionEngine
88
ExecutionEngine.cpp
99

10+
LINK_COMPONENTS
11+
OrcJit
12+
Support
13+
1014
LINK_LIBS PUBLIC
1115
MLIRBuiltinToLLVMIRTranslation
1216
MLIRExecutionEngine

0 commit comments

Comments
 (0)