[Mlir-commits] [mlir] ac4bd3c - [MLIR] Fix regression in linking to `MLIRAnalysisBase` via dylib (#236359)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 28 03:20:05 PDT 2026
Author: Michał Górny
Date: 2026-10-28T11:19:59+01:00
New Revision: ac4bd3cf8dd61a17d728ebc9b5ac9b3101eeed43
URL: https://github.com/llvm/llvm-project/commit/ac4bd3cf8dd61a17d728ebc9b5ac9b3101eeed43
DIFF: https://github.com/llvm/llvm-project/commit/ac4bd3cf8dd61a17d728ebc9b5ac9b3101eeed43.diff
LOG: [MLIR] Fix regression in linking to `MLIRAnalysisBase` via dylib (#236359)
Fix the regression introduced in #232793 where the `MLIRTestIR` library
ends up linking directly to `MLIRAnalysisBase` rather than to `MLIR`
dylib, and therefore duplicate it and all the static libraries it
depends on the linker command line.
Signed-off-by: Michał Górny <mgorny at gentoo.org>
Added:
Modified:
mlir/test/lib/IR/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/test/lib/IR/CMakeLists.txt b/mlir/test/lib/IR/CMakeLists.txt
index af424ce705b6a..27c9e4b21b1ec 100644
--- a/mlir/test/lib/IR/CMakeLists.txt
+++ b/mlir/test/lib/IR/CMakeLists.txt
@@ -30,15 +30,15 @@ add_mlir_library(MLIRTestIR
EXCLUDE_FROM_LIBMLIR
LINK_LIBS PUBLIC
- MLIRAnalysisBase
MLIRTestDialect
)
mlir_target_link_libraries(MLIRTestIR PUBLIC
- MLIRPass
+ MLIRAnalysisBase
MLIRBytecodeReader
MLIRBytecodeWriter
MLIRFunctionInterfaces
+ MLIRPass
)
target_include_directories(MLIRTestIR
More information about the Mlir-commits
mailing list