chore: remove libloading patch#3973
Merged
Bravo555 merged 2 commits intothin-edge:mainfrom Feb 17, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
027c9ae to
879192e
Compare
66737e5 to
5dbf74f
Compare
Contributor
Robot Results
|
5dbf74f to
324b0c7
Compare
reubenmiller
approved these changes
Feb 13, 2026
324b0c7 to
9addc63
Compare
Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
Provide --sysroot argument to rust-lld linker when compiling with musl, such that crates that wish to link with libraries like libdl (which are empty stubs but provided by musl) are able to do so. This change is made to make crates that link to libraries other than just libc, like libdl, build without issues. These libraries are provided by musl libc, so we should be able to link with them properly. Additional details in a [github comment][1]. [1]: nagisa/rust_libloading#195 (comment) How the linker gets invoked can be observed by setting RUSTFLAGS="-Clink-arg=-v -Wlinker-messages" Signed-off-by: Marcel Guzik <marcel.guzik@cumulocity.com>
9addc63 to
695e60b
Compare
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.
Proposed changes
Remove libloading patch, which was used to make the crate build with our
mk/cargo.sh, which changed some compilation settings to allow some other crates to be built for some targets. The build settings are changed to provide the library path torust-lldlinker, making the patch no longer necessary.More details: nagisa/rust_libloading#195 (comment)
Types of changes
Paste Link to the issue
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments