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

Attach minimum Linux versions to provided libcs + incorporate ABI in VersionRange.default() #22225

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Dec 13, 2024

This extends what we already do in std.zig.target.canBuildLibC() for macOS to Linux. Additionally, std.Target.Os.VersionRange.default() is changed to incorporate the ABI into its decision so that it can pick out the right entry in std.zig.target.available_libcs.

…c entry.

(With the exception of x86 since that was available from the beginning.)

These were determined by analyzing the full, reconstructed Git history of the
Linux kernel here: https://landley.net/kdocs/fullhist
The old logic only checked it for macOS, but we also need it to be checked for
Linux now.
This is necessary to pick out the correct minimum OS version from the
std.zig.target.available_libcs list.
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