mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
72e29da3ec
Currently, combining +bundle and +whole-archive works only with #![feature(packed_bundled_libs)] This crate feature is independent of the -Zpacked-bundled-libs command line option. This commit stabilizes the #![feature(packed_bundled_libs)] crate feature and implicitly enables it only when the +bundle and +whole-archive link modifiers are combined. This allows rlib crates to use the +whole-archive link modifier with native libraries and have all symbols included in the linked library to be included in downstream staticlib crates that use the rlib as a dependency. Other cases requiring the packed_bundled_libs behavior still require the -Zpacked-bundled-libs command line option, which can be stabilized independently in the future. Per discussion on https://github.com/rust-lang/rust/issues/108081 there is no risk of regression stabilizing the crate feature in this way because the combination of +bundle,+whole-archive link modifiers was previously not allowed. |
||
---|---|---|
.. | ||
empty-kind-1.rs | ||
empty-kind-1.stderr | ||
empty-kind-2.rs | ||
empty-kind-2.stderr | ||
link-arg-error.rs | ||
link-arg-error.stderr | ||
link-arg-from-rs.rs | ||
link-arg-from-rs.stderr | ||
modifiers-override-2.rs | ||
modifiers-override-2.stderr | ||
modifiers-override-3.rs | ||
modifiers-override-3.stderr | ||
modifiers-override.rs | ||
modifiers-override.stderr | ||
msvc-non-utf8-output.rs | ||
msvc-non-utf8-output.stderr | ||
suggest-libname-only-1.rs | ||
suggest-libname-only-1.stderr | ||
suggest-libname-only-2.rs | ||
suggest-libname-only-2.stderr |