[bazel] Fix build after 28d04c5
authorGoran Flegar <gflegar@google.com>
Mon, 6 Mar 2023 16:24:26 +0000 (17:24 +0100)
committerGoran Flegar <gflegar@google.com>
Mon, 6 Mar 2023 16:40:19 +0000 (17:40 +0100)
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel

index 7259cbe..476f770 100644 (file)
@@ -3557,6 +3557,21 @@ cc_library(
 )
 
 cc_library(
+    name = "Debug",
+    srcs = glob([
+        "lib/Debug/*.cpp",
+        "lib/Debug/*.h",
+    ]),
+    hdrs = glob(["include/mlir/Debug/*.h"]),
+    includes = ["include"],
+    deps = [
+        ":Support",
+        ":IR",
+        "//llvm:Support",
+    ],
+)
+
+cc_library(
     name = "MlirLspServerSupportLib",
     srcs = glob(
         [
@@ -6836,6 +6851,7 @@ cc_library(
     deps = [
         ":BytecodeReader",
         ":BytecodeWriter",
+        ":Debug",
         ":IR",
         ":Parser",
         ":Pass",
index 551af89..3c0e85e 100644 (file)
@@ -12,6 +12,23 @@ package(
 licenses(["notice"])
 
 cc_test(
+    name = "debug_tests",
+    size = "small",
+    srcs = glob([
+        "Debug/*.cpp",
+        "Debug/*.h",
+    ]),
+    deps = [
+        "//llvm:TestingSupport",
+        "//mlir:Debug",
+        "//mlir:Support",
+        "//third-party/unittest:gmock",
+        "//third-party/unittest:gtest",
+        "//third-party/unittest:gtest_main",
+    ],
+)
+
+cc_test(
     name = "ir_tests",
     size = "small",
     srcs = glob([
@@ -21,6 +38,7 @@ cc_test(
     deps = [
         "//llvm:Support",
         "//mlir:IR",
+        "//mlir:Support",
         "//mlir/test:TestDialect",
         "//third-party/unittest:gmock",
         "//third-party/unittest:gtest",