Skip to content

Commit

Permalink
Factor out generator_env
Browse files Browse the repository at this point in the history
  • Loading branch information
mvukov committed Dec 15, 2024
1 parent 3d56ea3 commit 8ff5d92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ros2/interfaces.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def run_generator(
extra_generator_args = None,
extra_generated_outputs = None,
mnemonic = None,
progress_message = None):
progress_message = None,
generator_env = None):
generator_templates = generator_templates[DefaultInfo].files.to_list()

generator_arguments_file = ctx.actions.declare_file(
Expand Down
1 change: 1 addition & 0 deletions ros2/rust_interfaces.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def _rust_generator_aspect_impl(target, ctx):
extra_generated_outputs = extra_generated_outputs,
mnemonic = "Ros2IdlGeneratorRust",
progress_message = "Generating Rust IDL interfaces for %{label}",
generator_env = {"ROS_DISTRO": "humble"},
)

# Ideally dep_variant_info could be a depset, and all dep propagation should
Expand Down

0 comments on commit 8ff5d92

Please sign in to comment.