Merge "Bazel: Fix running tests with toolchain_vanilla"

This commit is contained in:
David Pursehouse
2019-09-27 04:43:52 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 1 deletions

2
BUILD
View File

@@ -13,7 +13,7 @@ config_setting(
config_setting(
name = "java_next",
values = {
"java_toolchain": "@bazel_tools//tools/jdk:toolchain_vanilla",
"java_toolchain": "//tools:toolchain_vanilla",
},
)

View File

@@ -42,6 +42,7 @@ provide the path to JDK home:
```
$ bazel build \
--define=ABSOLUTE_JAVABASE=<path-to-java-12> \
--javabase=@bazel_tools//tools/jdk:absolute_javabase \
--host_javabase=@bazel_tools//tools/jdk:absolute_javabase \
--host_java_toolchain=//tools:toolchain_vanilla \
--java_toolchain=//tools:toolchain_vanilla \