Skip to content

Commit

Permalink
bazel: Mark an intermediate java_binary targets as non-executable
Browse files Browse the repository at this point in the history
Executable `java_binary` targets, i.e., those that can be `bazel run` or
used in build actions, require a Java runtime for the target platform.
Since there is no standalone Java runtime for Android, all Java targets
in the transitive closure of an `android_binary` must not be executable
for cross-compilation to work.

Note: Cross-compilation without flags is currently blocked on
bazelbuild/bazel#17085.
  • Loading branch information
fmeum committed Aug 2, 2023
1 parent 91b89f2 commit 4d0c74b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/code_intelligence/jazzer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jar_jar(

java_binary(
name = "jazzer_unshaded",
create_executable = False,
# Note: We can't add
# //src/main/java/com/code_intelligence/jazzer/runtime:java_bootstrap_unshaded itself as
# that would also strip out external dependencies common between Jazzer and its bootstrap jar,
Expand Down

0 comments on commit 4d0c74b

Please sign in to comment.