Skip to content

Commit

Permalink
Add missing WORKSPACE register_toolchains calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored and hvadehra committed Aug 7, 2023
1 parent f2218a4 commit 0294790
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions java/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)

0 comments on commit 0294790

Please sign in to comment.