]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #88161 - michaelwoerister:fix-whole-archive-no-bundle, r=petrochenkov
authorbors <bors@rust-lang.org>
Tue, 7 Sep 2021 12:31:11 +0000 (12:31 +0000)
committerbors <bors@rust-lang.org>
Tue, 7 Sep 2021 12:31:11 +0000 (12:31 +0000)
commit73641cd23ba470c6b4dcd72b8d5f62d27c735254
tree8c9e072ae0c9aa7bac43a01e978bb0f5fb93af4c
parent385f8e2078b00282a7a7ffcd58aad17b405f57bf
parent70c7317d71c9b6627b4b39f3381449b1397135f7
Auto merge of #88161 - michaelwoerister:fix-whole-archive-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 https://github.com/rust-lang/rust/issues/88085.

r? `@petrochenkov`
cc `@wesleywiser` `@gcoakes`
compiler/rustc_codegen_ssa/src/back/link.rs