File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed
compiler/rustc_codegen_ssa/src/back Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -1107,21 +1107,11 @@ fn link_natively(
11071107 let stripcmd = "rust-objcopy" ;
11081108 match ( strip, crate_type) {
11091109 ( Strip :: Debuginfo , _) => {
1110- strip_symbols_with_external_utility (
1111- sess,
1112- stripcmd,
1113- out_filename,
1114- Some ( & [ "-S" ] ) ,
1115- )
1110+ strip_symbols_with_external_utility ( sess, stripcmd, out_filename, Some ( & [ "-S" ] ) )
11161111 }
11171112 // Per the manpage, `-x` is the maximum safe strip level for dynamic libraries. (#93988)
11181113 ( Strip :: Symbols , CrateType :: Dylib | CrateType :: Cdylib | CrateType :: ProcMacro ) => {
1119- strip_symbols_with_external_utility (
1120- sess,
1121- stripcmd,
1122- out_filename,
1123- Some ( & [ "-x" ] ) ,
1124- )
1114+ strip_symbols_with_external_utility ( sess, stripcmd, out_filename, Some ( & [ "-x" ] ) )
11251115 }
11261116 ( Strip :: Symbols , _) => {
11271117 strip_symbols_with_external_utility ( sess, stripcmd, out_filename, None )
@@ -1141,12 +1131,7 @@ fn link_natively(
11411131 match strip {
11421132 // Always preserve the symbol table (-x).
11431133 Strip :: Debuginfo => {
1144- strip_symbols_with_external_utility (
1145- sess,
1146- stripcmd,
1147- out_filename,
1148- Some ( & [ "-x" ] ) ,
1149- )
1134+ strip_symbols_with_external_utility ( sess, stripcmd, out_filename, Some ( & [ "-x" ] ) )
11501135 }
11511136 // Strip::Symbols is handled via the --strip-all linker option.
11521137 Strip :: Symbols => { }
You can’t perform that action at this time.
0 commit comments