Skip to content

Commit 5133148

Browse files
ddunlcopybara-github
authored andcommitted
Add new workaround target due to bazelbuild/bazel#21519
Previously, the only failure case was XLA depending on TSL header accessed via `filegroup` or `exports_files`. The new target stops the reverse where TSL depends on XLA. We can delete this post TSL move. PiperOrigin-RevId: 696991269
1 parent e56bc14 commit 5133148

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

BUILD.bazel

+12
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,15 @@ license(
1212
package_name = "tsl",
1313
license_kinds = ["@rules_license//licenses/spdx:Apache-2.0"],
1414
)
15+
16+
cc_library(
17+
name = "empty",
18+
visibility = ["//visibility:public"],
19+
)
20+
21+
# Needed to workaround https://github.com/bazelbuild/bazel/issues/21519
22+
alias(
23+
name = "bazel_issue_21519",
24+
actual = ":empty",
25+
visibility = ["//visibility:public"],
26+
)

tsl/platform/default/rules_cc.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ def cc_library(name, deps = None, **kwargs):
2626
# alias of `empty`.
2727
if name != "empty":
2828
deps = deps + ["@xla//xla/tsl:bazel_issue_21519"] # buildifier: disable=list-append
29+
deps = deps + ["@tsl//:bazel_issue_21519"] # buildifier: disable=list-append
2930

3031
native.cc_library(name = name, deps = deps, **kwargs)

0 commit comments

Comments
 (0)