From d866f87f88bb41af68263f1ff457c84e25c61fa4 Mon Sep 17 00:00:00 2001 From: Goran Flegar Date: Mon, 6 Mar 2023 17:24:26 +0100 Subject: [PATCH] [bazel] Fix build after 28d04c5 --- .../llvm-project-overlay/mlir/BUILD.bazel | 16 ++++++++++++++++ .../mlir/unittests/BUILD.bazel | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 7259cbead137..476f7709d320 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -3556,6 +3556,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", diff --git a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel index 551af89a2165..3c0e85e08029 100644 --- a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel @@ -11,6 +11,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", @@ -21,6 +38,7 @@ cc_test( deps = [ "//llvm:Support", "//mlir:IR", + "//mlir:Support", "//mlir/test:TestDialect", "//third-party/unittest:gmock", "//third-party/unittest:gtest",