Skip to content

Commit

Permalink
Add target_compatible_with from kwargs to build_script_kwargs
Browse files Browse the repository at this point in the history
The top-level _build_script_run target should also have `target_compatible_with` in order to work with platforms compatibility.
  • Loading branch information
Vinh Tran authored Aug 25, 2023
1 parent 7f40480 commit f65d411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cargo/private/cargo_build_script_wrapper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def cargo_build_script(
build_script_kwargs["compatible_with"] = kwargs["compatible_with"]
binary_kwargs.pop("compatible_with")

if "target_compatible_with" in kwargs:
build_script_kwargs["target_compatible_with"] = kwargs["target_compatible_with"]

if "toolchains" in kwargs:
build_script_kwargs["toolchains"] = kwargs["toolchains"]

Expand Down

0 comments on commit f65d411

Please sign in to comment.