blob: 825d95886d725aba68f02a4fb382e26495b67f8d [file] [log] [blame]
ilistd14fcf42020-12-14 05:15:06 -08001load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain")
2
3# This toolchain is used to bootstrap Bazel.
4default_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 Beasley2ad10c32022-05-11 03:20:21 -07008 header_compiler = None, # avoid remote_java_tools dependency
9 header_compiler_direct = None, # ditto
ilistd14fcf42020-12-14 05:15:06 -080010 ijar = ["//third_party/ijar"],
Ryan Beasley2ad10c32022-05-11 03:20:21 -070011 jacocorunner = None, # avoid remote_java_tools dependency
ilistd14fcf42020-12-14 05:15:06 -080012 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 List9e6b2872021-01-08 06:04:10 -080021 singlejar = ["//src/tools/singlejar:singlejar"],
ilistd14fcf42020-12-14 05:15:06 -080022 source_version = "8",
23 tags = ["manual"],
24 target_version = "8",
25 visibility = ["//visibility:public"],
26)