[mlir][Bazel] Fix bazel build.
authorAdrian Kuegel <akuegel@google.com>
Wed, 24 Aug 2022 08:13:28 +0000 (10:13 +0200)
committerAdrian Kuegel <akuegel@google.com>
Wed, 24 Aug 2022 08:13:53 +0000 (10:13 +0200)
utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel

index 6c713c8..36c0cdf 100644 (file)
@@ -234,6 +234,10 @@ gentbl_cc_library(
             ["-gen-pass-decls"],
             "TableGen/PassGenTest.h.inc",
         ),
+        (
+            ["-gen-pass-defs"],
+            "TableGen/PassGenTest.cpp.inc",
+        ),
     ],
     tblgen = "//mlir:mlir-tblgen",
     td_file = "TableGen/passes.td",
@@ -299,8 +303,8 @@ cc_test(
         "//llvm:gtest_main",
         "//mlir:AffineAnalysis",
         "//mlir:Analysis",
-        "//mlir:Parser",
         "//mlir:IR",
+        "//mlir:Parser",
     ],
 )