rust/tests/run-make/rlib-format-packed-bundled-...
Be Wilson 72e29da3ec stabilize combining +bundle and +whole-archive link modifiers
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.
2023-08-15 15:51:18 -05:00
..
Makefile stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
main.rs [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00
native_dep_1.c [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00
native_dep_2.c [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00
native_dep_3.c [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00
native_dep_4.c [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00
rust_dep.rs stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
rust_dep_cfg.rs [link] enable packed bundled lib in non stable cases 2023-02-10 12:51:12 +03:00