Skip to content

Commit

Permalink
openroad.bzl: Make use of all srcs when obtaining config arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Leonowicz <[email protected]>
  • Loading branch information
mleonowicz committed Sep 4, 2024
1 parent 080e405 commit 5d0b8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openroad.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ def _make_impl(ctx, stage, steps, result_names = [], object_names = [], log_name
target of a ctx.attr.srcs list.
"""
variant = ctx.attr.variant
all_arguments = extra_arguments | _data_arguments(ctx) | _required_arguments(ctx) | _orfs_arguments(ctx.attr.srcs[0][OrfsInfo])
all_arguments = extra_arguments | _data_arguments(ctx) | _required_arguments(ctx) | _orfs_arguments(*[src[OrfsInfo] for src in ctx.attr.srcs])
output_dir = "{}/{}/{}".format(_platform(ctx), _module_top(ctx), variant)
config = ctx.actions.declare_file("results/{}/{}.mk".format(output_dir, stage))
ctx.actions.write(
Expand Down Expand Up @@ -780,7 +780,7 @@ def _make_impl(ctx, stage, steps, result_names = [], object_names = [], log_name
config_short = ctx.actions.declare_file("results/{}/{}.short.mk".format(output_dir, stage))
ctx.actions.write(
output = config_short,
content = _config_content(extra_arguments | _data_arguments(ctx) | _required_arguments(ctx) | _orfs_arguments(ctx.attr.srcs[0][OrfsInfo], short = True)),
content = _config_content(extra_arguments | _data_arguments(ctx) | _required_arguments(ctx) | _orfs_arguments(short = True, *[src[OrfsInfo] for src in ctx.attr.srcs])),
)

make = ctx.actions.declare_file("make_{}".format(stage))
Expand Down

0 comments on commit 5d0b8c5

Please sign in to comment.