Skip to content

Commit

Permalink
Make toolchains extension os/arch dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
jvolkman committed Jan 23, 2024
1 parent de275dd commit b410c69
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
26 changes: 22 additions & 4 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pycross/private/bzlmod/pycross.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _pycross_impl(module_ctx):
pycross = module_extension(
doc = "Configure rules_pycross.",
implementation = _pycross_impl,
# OS and arch dependent since the python interpreter is OS- and arch-specific.
# OS and arch dependent since we load from @pythons_hub//:interpreters.bzl.
os_dependent = True,
arch_dependent = True,
tag_classes = {
Expand Down
3 changes: 3 additions & 0 deletions pycross/private/bzlmod/toolchains.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def _toolchains_impl(module_ctx):
toolchains = module_extension(
doc = "Create toolchains.",
implementation = _toolchains_impl,
# OS and arch dependent since we load from @pythons_hub//:interpreters.bzl.
os_dependent = True,
arch_dependent = True,
tag_classes = {
"create_for_python_toolchains": tag_class(
attrs = {
Expand Down

0 comments on commit b410c69

Please sign in to comment.