Skip to content

Commit 3b1b023

Browse files
burmakoTensorFlow MLIR Team
authored andcommitted
Fix broken Bazel build
32be07f broke the Bazel build, and this CL fixes it. A separate issue is figuring out why this breakage wasn't caught by CI. This will be addressed separately. PiperOrigin-RevId: 470089033
1 parent d4cf2d1 commit 3b1b023

4 files changed

Lines changed: 3 additions & 43 deletions

File tree

‎BUILD‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ td_library(
2424
srcs = glob(["include/mlir-hlo/Dialect/mhlo/IR/*.td"]),
2525
includes = ["include"],
2626
deps = [
27-
"//third_party/tensorflow/compiler/xla/mlir_hlo/stablehlo:base_td_files",
27+
"//stablehlo:base_td_files",
2828
"@llvm-project//mlir:BuiltinDialectTdFiles",
2929
"@llvm-project//mlir:ControlFlowInterfacesTdFiles",
3030
"@llvm-project//mlir:CopyOpInterfaceTdFiles",
@@ -477,7 +477,7 @@ cc_library(
477477
":hlo_ops_enums_inc_gen",
478478
":hlo_ops_inc_gen",
479479
":hlo_ops_pattern_gen",
480-
"//third_party/tensorflow/compiler/xla/mlir_hlo/stablehlo:base",
480+
"//stablehlo:base",
481481
"@llvm-project//llvm:Support",
482482
"@llvm-project//mlir:Analysis",
483483
"@llvm-project//mlir:ArithmeticDialect",

‎stablehlo/BUILD‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
load("//third_party/llvm/build_defs:lit.bzl", "glob_lit_tests")
21
load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library", "gentbl_filegroup", "td_library")
32

43
package(
@@ -417,17 +416,11 @@ cc_binary(
417416
],
418417
)
419418

420-
glob_lit_tests(
421-
data = [":test_data"],
422-
driver = "@llvm-project//mlir:run_lit.sh",
423-
test_file_exts = ["mlir"],
424-
)
425-
426419
filegroup(
427420
name = "test_data",
428421
testonly = True,
429422
data = [
430-
"//third_party/tensorflow/compiler/xla/mlir_hlo/stablehlo:stablehlo-opt",
423+
":stablehlo-opt",
431424
"@llvm-project//llvm:FileCheck",
432425
],
433426
)

‎stablehlo/integrations/python/tests/BUILD‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎tosa/tests/BUILD‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)