Skip to content

Commit

Permalink
Set public visibility for R8 desugar binary
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
  • Loading branch information
ted-xie authored and copybara-github committed Mar 22, 2024
1 parent 239ce34 commit 32fd6e9
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 32fd6e9

Please sign in to comment.