forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollforward of bazelbuild@37eb1d7: Attach Java runtime to Java toolch…
…ains Defining a new rule "java_runtime_version_alias", which uses a custom configuration flag transition to select a specific version of... NEW: ... Automated rollback of commit ddfc932. *** Reason for rollback *** Rollforward *** Original change description *** Automated rollback of commit 37eb1d7. *** Reason for rollback *** Breaks multiple downstream projects, see https://buildkite.com/bazel/bazel-auto-sheriff-face-with-cowboy-hat/builds/364#c671c11c-f885-4527-829f-057b0e29d29c PiperOrigin-RevId: 347364659
- Loading branch information
1 parent
fa0b8ab
commit d14fcf4
Showing
12 changed files
with
204 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain") | ||
|
||
# This toolchain is used to bootstrap Bazel. | ||
default_java_toolchain( | ||
name = "bootstrap_toolchain", | ||
bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath.jar"], | ||
genclass = ["//src/java_tools/buildjar:bootstrap_genclass_deploy.jar"], | ||
ijar = ["//third_party/ijar"], | ||
java_runtime = "@local_jdk//:jdk", | ||
javabuilder = ["//src/java_tools/buildjar:bootstrap_VanillaJavaBuilder_deploy.jar"], | ||
jvm_opts = [ | ||
# Prevent "Could not reserve enough space for object heap" errors on Windows. | ||
"-Xmx512m", | ||
# Using tiered compilation improves performance of Javac when not using the worker mode. | ||
"-XX:+TieredCompilation", | ||
"-XX:TieredStopAtLevel=1", | ||
], | ||
singlejar = ["//src/java_tools/singlejar:bootstrap_deploy.jar"], | ||
source_version = "8", | ||
tags = ["manual"], | ||
target_version = "8", | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters