Skip to content

Commit d64f177

Browse files
authored
[mlir][bazel] Fix no-allow-shlib-undefined errors.
The BUILD file changes in #127544 adds `LinalgInterfaces` which is incomplete without `LinalgDialect`. For now, just add the `LinalgDialect` as dependency to tests which do not otherwise depend on it (but depend on `LinalgInterfaces` through e.g. `TensorDialect`). This is a temporary solution until the dependency of `TensorDialect` is trimmed to just the `linalg::RelayoutOpInterface`, but not the other linalg interfaces. See #127544 (review).
1 parent 519b53e commit d64f177

File tree

1 file changed

+2
-0
lines changed
  • utils/bazel/llvm-project-overlay/mlir/unittests

1 file changed

+2
-0
lines changed

utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ cc_test(
176176
"//mlir:ArithDialect",
177177
"//mlir:FuncDialect",
178178
"//mlir:IR",
179+
"//mlir:LinalgDialect",
179180
"//mlir:Parser",
180181
"//mlir:SCFDialect",
181182
"//mlir:SideEffectInterfaces",
@@ -211,6 +212,7 @@ cc_test(
211212
"//llvm:Support",
212213
"//llvm:TestingSupport",
213214
"//mlir:IR",
215+
"//mlir:LinalgDialect",
214216
"//mlir:SPIRVBinaryUtils",
215217
"//mlir:SPIRVDeserialization",
216218
"//mlir:SPIRVDialect",

0 commit comments

Comments
 (0)