Skip to content
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

Consistently thread extra target constraints around #2829

Merged

Conversation

illicitonion
Copy link
Collaborator

@illicitonion illicitonion commented Sep 3, 2024

This allows for selecting non-default toolchains where the exec triple matches the target triple.

This is tested by enabling the musl static linking tests on the Linux host platform. Before this PR, the test would fail because the -gnu rather than -musl rust toolchain would end up getting selected. Now, everything works.

Fixes #2726

@illicitonion illicitonion force-pushed the custom-toolchain-constraints branch 3 times, most recently from 540f196 to 86c4164 Compare September 3, 2024 15:01
Previously we were sometimes falling back to default values rather than
passing through the user-supplied value.
@illicitonion illicitonion changed the title WIP: Custom toolchain constraints Consistently thread extra target constraints around Sep 3, 2024
@illicitonion illicitonion marked this pull request as ready for review September 3, 2024 15:53
@illicitonion illicitonion added this pull request to the merge queue Sep 3, 2024
Merged via the queue into bazelbuild:main with commit 13e566e Sep 3, 2024
3 checks passed
@illicitonion illicitonion deleted the custom-toolchain-constraints branch September 3, 2024 20:40
illicitonion added a commit to illicitonion/rules_py that referenced this pull request Oct 22, 2024
* Bump rules_rust to pull in bazelbuild/rules_rust#2829
* Mark the default non-musl linux toolchain as incompatible, so musl is
  forced.
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.

MUSL: Target x86_64_musl resolves incorrectly to x86_64-unknown-linux-gnu toolchain
2 participants