Skip to content

Commit

Permalink
[pkg_win] fix cc_toolchain resolution across bazel versions
Browse files Browse the repository at this point in the history
This enables CC toolchain resolution across older and newer versions of
Bazel which are used across lowRISC repos.

Signed-off-by: Tim Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Oct 16, 2024
1 parent 2140195 commit 450767a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/pkg_win.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def _pkg_win_impl(ctx):
else:
fail("Unknown platform:", ctx.attr.platform)

cc_toolchain = find_cc_toolchain(ctx)
toolchain = find_cc_toolchain(ctx)
cc_toolchain = getattr(toolchain, "cc", toolchain)
mxe = _get_toolchain_dir(cc_toolchain)

args = [
Expand Down

0 comments on commit 450767a

Please sign in to comment.