1
Fork 0
rust/compiler/rustc_codegen_ssa/src
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
..
back stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
debuginfo inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
mir Rollup merge of #114505 - ouz-a:cleanup_mir, r=RalfJung 2023-08-06 17:26:29 +02:00
traits Auto merge of #105545 - erikdesjardins:ptrclean, r=bjorn3 2023-08-01 19:44:17 +00:00
base.rs stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
codegen_attrs.rs Add separate feature gate for async fn track caller 2023-08-02 14:18:21 -07:00
common.rs Promote unchecked_add/sub/mul/shl/shr to mir::BinOp 2023-06-19 01:47:03 -07:00
errors.rs stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
glue.rs Use size_of_val instead of manual calculation 2023-03-17 19:55:49 -07:00
lib.rs stabilize combining +bundle and +whole-archive link modifiers 2023-08-15 15:51:18 -05:00
meth.rs cg_ssa: remove pointee types and pointercast/bitcast-of-ptr 2023-07-29 13:18:20 -04:00
mono_item.rs inline format!() args up to and including rustc_codegen_llvm 2023-07-30 14:22:50 +02:00
target_features.rs add details for csky-unknown-linux-gnuabiv2 and add docs 2023-08-14 23:02:37 +08:00