Permalink
Browse files

Use VanillaJavaBuilder and disable header compilation in toolchain_ho…

…stjdk8

RELNOTES: Use VanillaJavaBuilder and disable header compilation in toolchain_hostjdk8. The default toolchain will soon drop compatibility with JDK 8. Using a JDK 8 host_javabase
will only be supported when using 'VanillaJavaBuilder' (which does not support Error Prone,
Strict Java Deps, or reduced classpaths) and with header compilation disabled.
PiperOrigin-RevId: 209619405
  • Loading branch information...
cushon authored and Copybara-Service committed Aug 21, 2018
1 parent 0d0aafe commit 3619e9073122aa622603162656701ecc5544dd21
Showing with 3 additions and 3 deletions.
  1. +3 −3 tools/jdk/BUILD
@@ -191,9 +191,9 @@ rm -rf $$TMPDIR
default_java_toolchain(
name = "toolchain_hostjdk8",
bootclasspath = [":platformclasspath"],
jvm_opts = [
"-Xbootclasspath/p:$(location @bazel_tools//third_party/java/jdk/langtools:javac_jar)",
],
forcibly_disable_header_compilation = True,
javabuilder = [":vanillajavabuilder"],
jvm_opts = [],
source_version = "8",
target_version = "8",
)

0 comments on commit 3619e90

Please sign in to comment.