File tree 1 file changed +3
-18
lines changed
compiler/rustc_codegen_ssa/src/back
1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -1107,21 +1107,11 @@ fn link_natively(
1107
1107
let stripcmd = "rust-objcopy" ;
1108
1108
match ( strip, crate_type) {
1109
1109
( 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" ] ) )
1116
1111
}
1117
1112
// Per the manpage, `-x` is the maximum safe strip level for dynamic libraries. (#93988)
1118
1113
( 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" ] ) )
1125
1115
}
1126
1116
( Strip :: Symbols , _) => {
1127
1117
strip_symbols_with_external_utility ( sess, stripcmd, out_filename, None )
@@ -1141,12 +1131,7 @@ fn link_natively(
1141
1131
match strip {
1142
1132
// Always preserve the symbol table (-x).
1143
1133
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" ] ) )
1150
1135
}
1151
1136
// Strip::Symbols is handled via the --strip-all linker option.
1152
1137
Strip :: Symbols => { }
You can’t perform that action at this time.
0 commit comments