Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
full_label(name + "_fg") may produce different result then (name + "_fg")
(name + "_fg") is used in srcs attr, so we make cmd attr to use the same
value.
  • Loading branch information
dmitry-j-mikhin committed Aug 2, 2024
1 parent 3debc17 commit 049034c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foreign_cc/utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def runnable_binary(name, binary, foreign_cc_target, match_binary_name = False,
srcs = ["@rules_foreign_cc//foreign_cc/private:runnable_binary_wrapper.sh", name + "_fg"],
outs = [name + "_wrapper.sh"],
cmd = select({
"@platforms//os:windows": wrapper_cmd.format(name = full_label(name + "_fg"), sh_binary_filename = binary + ".exe" if match_binary_name else name),
"@platforms//os:windows": wrapper_cmd.format(name = (name + "_fg"), sh_binary_filename = binary + ".exe" if match_binary_name else name),
"//conditions:default": wrapper_cmd.format(name = full_label(name + "_fg"), sh_binary_filename = binary if match_binary_name else name),
}),
tags = tags + ["manual"],
Expand Down

0 comments on commit 049034c

Please sign in to comment.