rust/compiler/rustc_codegen_ssa/src/back
bors 73641cd23b 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`
2021-09-07 12:31:11 +00:00
..
rpath Remove LibSource 2021-07-05 10:49:07 +02:00
archive.rs Move add_rlib and add_native_library to cg_ssa 2021-09-01 14:43:27 +02:00
command.rs Instruct lld that our @ files are posix-style, not Windows 2020-10-05 08:01:44 -04:00
link.rs Auto merge of #88161 - michaelwoerister:fix-whole-archive-no-bundle, r=petrochenkov 2021-09-07 12:31:11 +00:00
linker.rs Fold LinkerInfo into CrateInfo 2021-07-06 18:28:07 +02:00
lto.rs Support -C passes in NewPM 2021-05-08 10:58:08 +02:00
metadata.rs rustc: Store metadata-in-rlibs in object files 2021-06-04 10:05:20 -07:00
mod.rs Use the object crate for metadata reading 2021-05-07 18:48:58 +02:00
rpath.rs Remove LibSource 2021-07-05 10:49:07 +02:00
symbol_export.rs Replace #[plugin_registrar] with exporting __rustc_plugin_registrar 2021-08-10 14:20:48 +02:00
write.rs Move LinkerInfo into CrateInfo 2021-07-06 15:31:38 +02:00