diff options
| author | bors <bors@rust-lang.org> | 2023-11-09 12:26:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-09 12:26:28 +0000 |
| commit | e7998aa21fbfa8ef8f8d371cd4092fa91dd61d29 (patch) | |
| tree | caac358235f23310f0a589856a5b48d7d4d80040 /compiler/rustc_codegen_ssa/src/back/link.rs | |
| parent | 287ae4db75228ef8260a112bcc65245f05e18340 (diff) | |
| parent | ecc936b15511212dc54f6d0bbc6e6ce5ed8bcd6b (diff) | |
Auto merge of #117734 - nnethercote:rm-Zstrip, r=davidtwco
Remove `-Z strip`. It was stabilized as `-C strip` in November 2021. The unstable option was kept around as a temporary measure to ease the transition. Two years is more than enough! r? `@tmandry`
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/link.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index bcbb75d9599..dd9d277fb77 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -1033,7 +1033,7 @@ fn link_natively<'a>( SplitDebuginfo::Packed => link_dwarf_object(sess, codegen_results, out_filename), } - let strip = strip_value(sess); + let strip = sess.opts.cg.strip; if sess.target.is_like_osx { match (strip, crate_type) { @@ -1070,14 +1070,6 @@ fn link_natively<'a>( Ok(()) } -// Temporarily support both -Z strip and -C strip -fn strip_value(sess: &Session) -> Strip { - match (sess.opts.unstable_opts.strip, sess.opts.cg.strip) { - (s, Strip::None) => s, - (_, s) => s, - } -} - fn strip_symbols_with_external_utility<'a>( sess: &'a Session, util: &str, @@ -2370,7 +2362,7 @@ fn add_order_independent_options( ); // Pass debuginfo, NatVis debugger visualizers and strip flags down to the linker. - cmd.debuginfo(strip_value(sess), &natvis_visualizers); + cmd.debuginfo(sess.opts.cg.strip, &natvis_visualizers); // We want to prevent the compiler from accidentally leaking in any system libraries, // so by default we tell linkers not to link to any default libraries. |
