aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar John Cater <jcater@google.com>2018-01-23 02:18:34 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-23 02:20:41 -0800
commitd1c829f490a3113a4fecd91f8b2c36fc59275020 (patch)
tree92f41933a76d91d5de3295f6f64ff38cfe0286f3 /tools
parentfa54bfa31bb25bbe06925e40ebc7a908c1cd64d9 (diff)
Add JavaRuntimeToolchainInfo class to wrap JavaRuntimeInfo for toolchains access.
Change-Id: I6041c51823fa52d6ae55dfe06afd1754ce05ab98 PiperOrigin-RevId: 182904580
Diffstat (limited to 'tools')
-rw-r--r--tools/jdk/alias_rules.bzl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/jdk/alias_rules.bzl b/tools/jdk/alias_rules.bzl
index fa56ae5fe7..90847e964b 100644
--- a/tools/jdk/alias_rules.bzl
+++ b/tools/jdk/alias_rules.bzl
@@ -15,7 +15,8 @@
def _java_host_runtime_alias_impl(ctx):
vars = ctx.attr._host_java_runtime[platform_common.TemplateVariableInfo]
runtime_info = ctx.attr._host_java_runtime[java_common.JavaRuntimeInfo]
- return struct(providers=[vars, runtime_info])
+ runtime_toolchain = ctx.attr._host_java_runtime[platform_common.ToolchainInfo]
+ return struct(providers=[vars, runtime_info, runtime_toolchain])
java_host_runtime_alias = rule(
attrs = {