Add Java toolchain to a genrule that requires it.
Summary:
Since Bazel 0.10.0, it is now necessary to specify the toolchain explicitly in
order to get the $(JAVA) make variable defined.
Breaking change is breaking.
Reviewers: shahms, #core_team
Subscribers: #core_team
@@ -12,4 +12,5 @@ genrule(
],
outs = ["test.entries"],
cmd = "$(JAVA) -Xbootclasspath/p:$(location //third_party/javac:javac_jar) -jar $(location //kythe/java/com/google/devtools/kythe/analyzers/java:indexer_deploy.jar) $(location test.kindex) > $@",
+ toolchains = ["@bazel_tools//tools/jdk:current_java_runtime"],
)
