ilist | d14fcf4 | 2020-12-14 05:15:06 -0800 | [diff] [blame] | 1 | load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain") |
| 2 | |
| 3 | # This toolchain is used to bootstrap Bazel. |
| 4 | default_java_toolchain( |
| 5 | name = "bootstrap_toolchain", |
| 6 | bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath.jar"], |
| 7 | genclass = ["//src/java_tools/buildjar:bootstrap_genclass_deploy.jar"], |
Ryan Beasley | 2ad10c3 | 2022-05-11 03:20:21 -0700 | [diff] [blame] | 8 | header_compiler = None, # avoid remote_java_tools dependency |
| 9 | header_compiler_direct = None, # ditto |
ilist | d14fcf4 | 2020-12-14 05:15:06 -0800 | [diff] [blame] | 10 | ijar = ["//third_party/ijar"], |
Ryan Beasley | 2ad10c3 | 2022-05-11 03:20:21 -0700 | [diff] [blame] | 11 | jacocorunner = None, # avoid remote_java_tools dependency |
ilist | d14fcf4 | 2020-12-14 05:15:06 -0800 | [diff] [blame] | 12 | java_runtime = "@local_jdk//:jdk", |
| 13 | javabuilder = ["//src/java_tools/buildjar:bootstrap_VanillaJavaBuilder_deploy.jar"], |
| 14 | jvm_opts = [ |
| 15 | # Prevent "Could not reserve enough space for object heap" errors on Windows. |
| 16 | "-Xmx512m", |
| 17 | # Using tiered compilation improves performance of Javac when not using the worker mode. |
| 18 | "-XX:+TieredCompilation", |
| 19 | "-XX:TieredStopAtLevel=1", |
| 20 | ], |
Ivo List | 9e6b287 | 2021-01-08 06:04:10 -0800 | [diff] [blame] | 21 | singlejar = ["//src/tools/singlejar:singlejar"], |
ilist | d14fcf4 | 2020-12-14 05:15:06 -0800 | [diff] [blame] | 22 | source_version = "8", |
| 23 | tags = ["manual"], |
| 24 | target_version = "8", |
| 25 | visibility = ["//visibility:public"], |
| 26 | ) |