Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Add TemplateVariableInfo for build script toolchains attribute. (baze…
Browse files Browse the repository at this point in the history
  • Loading branch information
granaghan authored Aug 25, 2023
1 parent 7f40480 commit 1320071
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cargo/private/cargo_build_script.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ def _cargo_build_script_impl(ctx):
if type(all_files) == "list":
all_files = depset(all_files)
toolchain_tools.append(all_files)
if platform_common.TemplateVariableInfo in target:
variables = getattr(target[platform_common.TemplateVariableInfo], "variables", depset([]))
env.update(variables)

_merge_env_dict(env, expand_dict_value_locations(
ctx,
Expand Down

0 comments on commit 1320071

Please # to comment.