Skip to content

Commit

Permalink
fix: target_compatible_with other workspaces (#73)
Browse files Browse the repository at this point in the history
When passing different workspaces to customize the target compatibility,
Label removes the workspace name, rendering the wrong string back into
the BUILD.bazel files.

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
  • Loading branch information
f0rmiga authored Jul 4, 2022
1 parent 01f4347 commit 9381390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchain/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _gcc_toolchain_impl(rctx):
]

target_compatible_with = [
str(Label(v.format(target_arch = target_arch)))
v.format(target_arch = target_arch)
for v in rctx.attr.target_compatible_with
]

Expand Down

0 comments on commit 9381390

Please sign in to comment.