File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
rustc_codegen_ssa/src/back Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -1033,7 +1033,7 @@ fn link_natively<'a>(
10331033 SplitDebuginfo :: Packed => link_dwarf_object ( sess, codegen_results, out_filename) ,
10341034 }
10351035
1036- let strip = strip_value ( sess) ;
1036+ let strip = sess. opts . cg . strip ;
10371037
10381038 if sess. target . is_like_osx {
10391039 match ( strip, crate_type) {
@@ -1070,14 +1070,6 @@ fn link_natively<'a>(
10701070 Ok ( ( ) )
10711071}
10721072
1073- // Temporarily support both -Z strip and -C strip
1074- fn strip_value ( sess : & Session ) -> Strip {
1075- match ( sess. opts . unstable_opts . strip , sess. opts . cg . strip ) {
1076- ( s, Strip :: None ) => s,
1077- ( _, s) => s,
1078- }
1079- }
1080-
10811073fn strip_symbols_with_external_utility < ' a > (
10821074 sess : & ' a Session ,
10831075 util : & str ,
@@ -2370,7 +2362,7 @@ fn add_order_independent_options(
23702362 ) ;
23712363
23722364 // Pass debuginfo, NatVis debugger visualizers and strip flags down to the linker.
2373- cmd. debuginfo ( strip_value ( sess) , & natvis_visualizers) ;
2365+ cmd. debuginfo ( sess. opts . cg . strip , & natvis_visualizers) ;
23742366
23752367 // We want to prevent the compiler from accidentally leaking in any system libraries,
23762368 // so by default we tell linkers not to link to any default libraries.
Original file line number Diff line number Diff line change @@ -1841,8 +1841,6 @@ written to standard error output)"),
18411841 "prefer dynamic linking to static linking for staticlibs (default: no)" ) ,
18421842 strict_init_checks: bool = ( false , parse_bool, [ TRACKED ] ,
18431843 "control if mem::uninitialized and mem::zeroed panic on more UB" ) ,
1844- strip: Strip = ( Strip :: None , parse_strip, [ UNTRACKED ] ,
1845- "tell the linker which information to strip (`none` (default), `debuginfo` or `symbols`)" ) ,
18461844 #[ rustc_lint_opt_deny_field_access( "use `Session::teach` instead of this field" ) ]
18471845 teach: bool = ( false , parse_bool, [ TRACKED ] ,
18481846 "show extended diagnostic help (default: no)" ) ,
You can’t perform that action at this time.
0 commit comments