Skip to content

Commit

Permalink
[7.1.2] Set public visibility for R8 desugar binary (#22176)
Browse files Browse the repository at this point in the history
We are migrating Android functionality out of Bazel into rules_android.
Currently rules_android depends on
@bazel_tools//tools/android:desugar_java8 for a sh_binary that calls the
R8 desugar binary. Going forward, we'll maintain the sh_binary directly
in rules_android, and therefore will require public visibility on
[...]/r8:desugar. Eventually the source code for the Bazel R8 desugar
wrapper will also move into rules_android.

Part of bazelbuild/rules_android#122.

Closes #21775.

PiperOrigin-RevId: 618272641
Change-Id: I09d9ca19b742049c2d29a75336d1b0680b0005b1

Commit
32fd6e9

Co-authored-by: Ted Xie <[email protected]>
Co-authored-by: Xùdōng Yáng <[email protected]>
  • Loading branch information
3 people authored May 8, 2024
1 parent a01c443 commit a1dcae8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ java_binary(
"-Dcom.android.tools.r8.createSingletonsForStatelessLambdas",
],
main_class = "com.google.devtools.build.android.r8.Desugar",
visibility = ["//tools/android:__subpackages__"],
visibility = ["//visibility:public"],
runtime_deps = [
":r8",
],
Expand Down

0 comments on commit a1dcae8

Please sign in to comment.