Author: David Spickett Date: 2025-02-07T18:19:57-08:00 New Revision: 898089b76e1c9f6bb9c61a4f43e287b07c67eadb
URL: https://github.com/llvm/llvm-project/commit/898089b76e1c9f6bb9c61a4f43e287b07c67eadb DIFF: https://github.com/llvm/llvm-project/commit/898089b76e1c9f6bb9c61a4f43e287b07c67eadb.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. (cherry picked from commit ebd23f25c8936db3dd917567737a067d6878e2f4) 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 ) _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits