-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
linker: Refactoring and fixes to native library linking #103311
Conversation
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
cc @belovdv |
The failing run-make-fulldeps test needs to be updated, adjacent identical native libraries are no longer deduplicated if they come from different crates, but that's fine, it's not the main motivation. |
This comment was marked as resolved.
This comment was marked as resolved.
r? @bjorn3 seems to be way more on-top of this than I am. |
Updated with the change from #103311 (comment) removed. |
@bors r+ rollup=iffy |
📌 Commit edb9175eb4e0641138f9d90d4877f86469b3a950 has been approved by It is now in the queue for this repository. |
⌛ Testing commit edb9175eb4e0641138f9d90d4877f86469b3a950 with merge e1392304fca9da9c1e1a81251f0384456380812c... |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This also fixes linking of native libraries bundled into these crates when `-Zpacked-bundled-libs` is enabled
Inline `fn unlib`
…d_bundled_libs` So you can change the value of `-Zpacked_bundled_libs` without rebuilding standard library
Adjacent identical native libraries are no longer deduplicated if they come from different crates
I've added a commit to link |
It's not the nicest solution, but it should work for now. @bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
Didn't see you already posted an r+ :) |
☀️ Test successful - checks-actions |
Finished benchmarking commit (fb6667a): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
This PR contains a bunch of code cleanup and comment rearrangements + 2 fixes for
-Zpacked-bundled-libs
.It's better to look at individual commits.