From 02947909441e6df3452d1a782b3d78ece525735e Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Tue, 1 Aug 2023 10:45:39 +0200 Subject: [PATCH] Add missing WORKSPACE `register_toolchains` calls --- java/repositories.bzl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/java/repositories.bzl b/java/repositories.bzl index 7e5b939..a7cf3bd 100644 --- a/java/repositories.bzl +++ b/java/repositories.bzl @@ -551,7 +551,13 @@ def rules_java_toolchains(name = "toolchains"): REMOTE_JDK_REPOS = [("remotejdk" + version + "_" + platform) for version in JDKS for platform in JDKS[version]] - native.register_toolchains("//toolchains:all") - native.register_toolchains("@local_jdk//:runtime_toolchain_definition") + native.register_toolchains( + "//toolchains:all", + "@local_jdk//:runtime_toolchain_definition", + "@local_jdk//:bootstrap_runtime_toolchain_definition", + ) for name in REMOTE_JDK_REPOS: - native.register_toolchains("@" + name + "_toolchain_config_repo//:toolchain") + native.register_toolchains( + "@" + name + "_toolchain_config_repo//:toolchain", + "@" + name + "_toolchain_config_repo//:bootstrap_runtime_toolchain", + )