Repository navigation
Add support for libc-specific Linux native library variants - #1748
Open
EduardoRadieske wants to merge 1 commit into
Open
EduardoRadieske wants to merge 1 commit into
EduardoRadieske wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1694
Summary
Allow multiple Linux native library variants compiled for
glibcandmuslto coexist on the classpath, selecting the matching variant at runtime based on the libc used by the current process.Resource layout
For example, on Linux x86-64, resources can be packaged using the following layout:
The libc-specific directories follow the naming convention
<RESOURCE_PREFIX>-<libc>, where<libc>isglibcormusl.The existing
linux-x86-64/resource path remains available as a legacy fallback, preserving compatibility with existing resource layouts.Changes
/proc/self/maps.Tests
PlatformTestcoverage for libc detection, ambiguous or missing indicators, read failures, deleted mappings, and false-positive paths.LibraryLoadTestcoverage for variant selection, prevention of selecting the opposite libc variant, and fallback behavior.