Lines 1-6
Link Here
|
1 |
--- tools/jdk/default_java_toolchain.bzl.orig 1980-01-01 00:00:00.000000000 +0100 |
1 |
--- tools/jdk/default_java_toolchain.bzl.orig 1980-01-01 00:00:00.000000000 +0000 |
2 |
+++ tools/jdk/default_java_toolchain.bzl 2018-10-30 00:09:06.904725000 +0100 |
2 |
+++ tools/jdk/default_java_toolchain.bzl 2019-03-04 15:02:00.395888000 +0000 |
3 |
@@ -19,29 +19,7 @@ |
3 |
@@ -19,29 +19,6 @@ |
4 |
] |
4 |
] |
5 |
|
5 |
|
6 |
JDK9_JVM_OPTS = [ |
6 |
JDK9_JVM_OPTS = [ |
Lines 19-38
Link Here
|
19 |
- "--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
19 |
- "--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED", |
20 |
- |
20 |
- |
21 |
- # override the javac in the JDK. |
21 |
- # override the javac in the JDK. |
22 |
- "--patch-module=java.compiler=$(location @bazel_tools//third_party/java/jdk/langtools:java_compiler_jar)", |
22 |
- "--patch-module=java.compiler=$(location @bazel_tools//tools/jdk:java_compiler_jar)", |
23 |
- "--patch-module=jdk.compiler=$(location @bazel_tools//third_party/java/jdk/langtools:jdk_compiler_jar)", |
23 |
- "--patch-module=jdk.compiler=$(location @bazel_tools//tools/jdk:jdk_compiler_jar)", |
24 |
- |
24 |
- |
25 |
- # quiet warnings from com.google.protobuf.UnsafeUtil, |
25 |
- # quiet warnings from com.google.protobuf.UnsafeUtil, |
26 |
- # see: https://github.com/google/protobuf/issues/3781 |
26 |
- # see: https://github.com/google/protobuf/issues/3781 |
27 |
- # and: https://github.com/bazelbuild/bazel/issues/5599 |
27 |
- # and: https://github.com/bazelbuild/bazel/issues/5599 |
28 |
- "--add-opens=java.base/java.nio=ALL-UNNAMED", |
28 |
- "--add-opens=java.base/java.nio=ALL-UNNAMED", |
29 |
- "--add-opens=java.base/java.lang=ALL-UNNAMED", |
29 |
- "--add-opens=java.base/java.lang=ALL-UNNAMED", |
30 |
+ "-Xbootclasspath/p:$(location @bazel_tools//third_party/java/jdk/langtools:javac_jar)", |
|
|
31 |
] |
30 |
] |
32 |
|
31 |
|
33 |
DEFAULT_JAVACOPTS = [ |
32 |
DEFAULT_JAVACOPTS = [ |
34 |
@@ -74,7 +52,7 @@ |
33 |
@@ -74,7 +51,7 @@ |
35 |
"@bazel_tools//third_party/java/jdk/langtools:jdk_compiler_jar", |
34 |
"@bazel_tools//tools/jdk:jdk_compiler_jar", |
36 |
], |
35 |
], |
37 |
"javac_supports_workers": 1, |
36 |
"javac_supports_workers": 1, |
38 |
- "jvm_opts": JDK9_JVM_OPTS, |
37 |
- "jvm_opts": JDK9_JVM_OPTS, |