Skip to content

refactor: make bzlmod pass platform mapping to host repo creation #2889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

rickeylev
Copy link
Collaborator

This makes bzlmod pass the platform metadata to the host_toolchain rule instead of
the host toolchain rule using the fixed PLATFORMS global.

This allows the bzlmod extension to modify the platforms that are available, where the
fixed PLATFORM global can't be changed.

DO NOT MERGE: awaiting #2888

Work towards #2081

@rickeylev rickeylev requested a review from aignas as a code owner May 16, 2025 22:25
@rickeylev rickeylev force-pushed the refactor.bzlmod.pass.platforms.to.host.repo branch from 2d4fd4a to ce3027c Compare May 17, 2025 18:16
@@ -384,6 +386,16 @@ toolchain_aliases repo because referencing the `python` interpreter target from
this repo causes an eager fetch of the toolchain for the host platform.
""",
attrs = {
"archs": attr.string_dict(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
"archs": attr.string_dict(
"arch_names": attr.string_dict(

or cpu_names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants