-
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
Fix handling of +whole-archive native link modifier. #88161
Fix handling of +whole-archive native link modifier. #88161
Conversation
This comment has been minimized.
This comment has been minimized.
1da2ebd
to
4f42015
Compare
src/test/run-make/native-link-modifier-whole-archive/c_static_lib_with_constructor.c
Outdated
Show resolved
Hide resolved
4f42015
to
7b57e22
Compare
7b57e22
to
fc53fff
Compare
34f7f7c
to
e024481
Compare
I think this is ready for review now. |
e024481
to
2899c45
Compare
Thanks! |
📌 Commit 2899c45 has been approved by |
2899c45
to
07241e6
Compare
@petrochenkov, the merge conflict is resolved now. |
@bors r+ |
📌 Commit 07241e6 has been approved by |
…no-bundle, r=petrochenkov Fix handling of +whole-archive native link modifier. This PR fixes a bug in `add_upstream_native_libraries` that led to the `+whole-archive` modifier being ignored when linking in native libs. ~~Note that the PR does not address the situation when `+whole-archive` is combined with `+bundle`.~~ `@wesleywiser's` commit adds validation code that turns combining `+whole-archive` with `+bundle` into an error. Fixes rust-lang#88085. r? `@petrochenkov` cc `@wesleywiser` `@gcoakes`
07241e6
to
70c7317
Compare
I added |
@bors r=petrochenkov rollup=never |
📌 Commit 70c7317 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (73641cd): comparison url. Summary: This benchmark run did not return any relevant changes. If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
This PR fixes a bug in
add_upstream_native_libraries
that led to the+whole-archive
modifier being ignored when linking in native libs.Note that the PR does not address the situation when+whole-archive
is combined with+bundle
.@wesleywiser's commit adds validation code that turns combining
+whole-archive
with+bundle
into an error.Fixes #88085.
r? @petrochenkov
cc @wesleywiser @gcoakes