[Mlir-commits] [mlir] ebd23f2 - [mlir][CMake] Fix dependency on MLIRTestDialect in Transforms tests (#125894)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Feb 5 09:49:56 PST 2025
Author: David Spickett
Date: 2025-02-05T17:49:52Z
New Revision: ebd23f25c8936db3dd917567737a067d6878e2f4
URL: https://github.com/llvm/llvm-project/commit/ebd23f25c8936db3dd917567737a067d6878e2f4
DIFF: https://github.com/llvm/llvm-project/commit/ebd23f25c8936db3dd917567737a067d6878e2f4.diff
LOG: [mlir][CMake] Fix dependency on MLIRTestDialect in Transforms tests (#125894)
Another follow up fix to
https://github.com/llvm/llvm-project/pull/123910 to fix a build failure
that sometimes happens in shared library builds:
https://lab.llvm.org/buildbot/#/builders/50/builds/9724
In file included from
/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/mlir/test/lib/Transforms/TestInlining.cpp:16:
/home/tcwg-buildbot/worker/flang-aarch64-dylib/llvm-project/mlir/test/lib/Transforms/../Dialect/Test/TestOps.h:148:10:
fatal error: 'TestOps.h.inc' file not found
148 | #include "TestOps.h.inc"
| ^~~~~~~~~~~~~~~
1 error generated.
Added:
Modified:
mlir/test/lib/Transforms/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/test/lib/Transforms/CMakeLists.txt b/mlir/test/lib/Transforms/CMakeLists.txt
index b91265d20fb4812..1b9b9bffa52792e 100644
--- a/mlir/test/lib/Transforms/CMakeLists.txt
+++ b/mlir/test/lib/Transforms/CMakeLists.txt
@@ -34,12 +34,14 @@ add_mlir_library(MLIRTestTransforms
DEPENDS
${MLIRTestTransformsPDLDep}
+
+ LINK_LIBS PUBLIC
+ MLIRTestDialect
)
mlir_target_link_libraries(MLIRTestTransforms PUBLIC
MLIRAnalysis
MLIRFuncDialect
MLIRInferIntRangeInterface
- MLIRTestDialect
MLIRTransforms
)
More information about the Mlir-commits
mailing list