Skip to content

Commit 898089b

Browse files
DavidSpicketttstellar
authored andcommitted
[mlir][CMake] Fix dependency on MLIRTestDialect in Transforms tests (llvm#125894)
Another follow up fix to llvm#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 ebd23f2)
1 parent 3351e1b commit 898089b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mlir/test/lib/Transforms/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@ add_mlir_library(MLIRTestTransforms
3434

3535
DEPENDS
3636
${MLIRTestTransformsPDLDep}
37+
38+
LINK_LIBS PUBLIC
39+
MLIRTestDialect
3740
)
3841
mlir_target_link_libraries(MLIRTestTransforms PUBLIC
3942
MLIRAnalysis
4043
MLIRFuncDialect
4144
MLIRInferIntRangeInterface
42-
MLIRTestDialect
4345
MLIRTransforms
4446
)
4547

0 commit comments

Comments
 (0)