Skip to content

refactor: explicitly define host platform ordering #2890

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 7 commits into
base: main
Choose a base branch
from

Conversation

rickeylev
Copy link
Collaborator

@rickeylev rickeylev commented May 16, 2025

It turns out the unsorted-dict-items disable in versions.bzl is load-bearing: the
precedence of what host-compatible runtime is selected depends on the order of keys.
Hence, the keys are carefully defined such that freethreaded and musl come after the
regular runtimes.

Make this subtle and implicit behavior explicit by having an ordering function that
sorts keys in the order we want.

DO NOT MERGE: awaiting #2889

Work towards #2081

@rickeylev rickeylev requested a review from aignas as a code owner May 16, 2025 23:20
@rickeylev rickeylev force-pushed the refactor.well.defined.host.platform.ordering branch from e283fc0 to b31a9a4 Compare May 16, 2025 23:21
@rickeylev rickeylev force-pushed the refactor.well.defined.host.platform.ordering branch from b31a9a4 to f88fc59 Compare May 17, 2025 18:35
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.

1 participant