[Bazel] Swap stray td_srcs to deps
authorGeoffrey Martin-Noble <gcmn@google.com>
Fri, 23 Jul 2021 21:50:58 +0000 (14:50 -0700)
committerGeoffrey Martin-Noble <gcmn@google.com>
Fri, 23 Jul 2021 22:07:17 +0000 (15:07 -0700)
This is the last instance of td_srcs in MLIR core build files. `deps` is
generally preferred. There are still some cases where `td_srcs` is
useful where creating a td_library would just be another layer of
indirection, so not (yet) dropping it entirely.

Differential Revision: https://reviews.llvm.org/D106716

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

index 8435e52..bf6def8 100644 (file)
@@ -160,10 +160,10 @@ gentbl_cc_library(
     ],
     tblgen = "//mlir:mlir-tblgen",
     td_file = "lib/Dialect/Test/TestAttrDefs.td",
-    td_srcs = [
+    test = True,
+    deps = [
         ":TestOpTdFiles",
     ],
-    test = True,
 )
 
 gentbl_cc_library(