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

fix(build): Support glibc qualifiers for Rust targets #1858

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

rfairfax
Copy link
Contributor

If you're targetting an older Linux distro the default glibc version being linked against may be too high to produce runnable images.

cargo zigbuild supports specifying a specific glibc version to use for a link target by appending "." to the target triple. For example, "x86_64-unknown-linux-gnu.2.17" will target v2.17.

For the most part this just works but we need to strip this suffix when looking for output binaries. This fix adds that logic.

Pull Request checklist

  • The commit(s) message(s) follows the contribution guidelines ?

New behavior :

Support glibc target suffixes

If you're targetting an older Linux distro the default glibc version
being linked against may be too high to produce runnable images.

cargo zigbuild supports specifying a specific glibc version to use
for a link target by appending ".<version>" to the target triple.  For
example, "x86_64-unknown-linux-gnu.2.17" will target v2.17.

For the most part this just works but we need to strip this suffix when
looking for output binaries.  This fix adds that logic.
@rfairfax rfairfax merged commit e310445 into filodb:develop Sep 27, 2024
1 check passed
@rfairfax rfairfax deleted the rfairfax/rust_glibc branch September 27, 2024 17:22
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.

3 participants