04d91a4cd0
The OpenJDK21 build requires a 20 or 21 bootstrap JDK, which we don't yet have prebuilts for. Check in this locally built OpenJDK21. This will be replaced with a JDK built on the build servers once they have completed a build bootstrapped from this JDK. Bug: 302395149 Test: toolchain/jdk/build/build-openjdk21-linux.sh Change-Id: Ib968726bc96e04c3ca9cb3b964a7be5d028244c1
24 lines
541 B
Python
24 lines
541 B
Python
load("@bazel_tools//tools/jdk:local_java_repository.bzl", "local_java_runtime")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
java_runtime(
|
|
name = "jdk21_runtime",
|
|
srcs = glob(["linux-x86/**"]),
|
|
java_home = "linux-x86",
|
|
)
|
|
|
|
local_java_runtime(
|
|
name = "jdk21",
|
|
exec_compatible_with = ["//build/bazel_common_rules/platforms/os:linux"],
|
|
java_home = None,
|
|
runtime_name = ":jdk21_runtime",
|
|
version = "21",
|
|
)
|
|
|
|
filegroup(
|
|
name = "jar",
|
|
srcs = ["linux-x86/bin/jar"],
|
|
data = [":jdk21_runtime"],
|
|
)
|