[bazel] Fix build after 28d04c5

This commit is contained in:
Goran Flegar 2023-03-06 17:24:26 +01:00
parent 0bd4499b96
commit d866f87f88
2 changed files with 34 additions and 0 deletions

View File

@ -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",

View File

@ -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",