Rollup merge of #144829 - Kivooeo:strip-flag, r=WaffleLapkin
Use full flag name in strip command for Darwin Darwin always uses `rust-objcopy` which supports long-form flags Solaris unchanged due to not having support for `--discard-all` and only `-x` fixes https://github.com/rust-lang/rust/issues/135038 r? ````@WaffleLapkin```` (since bot will ping you anyway, feel free to reroll)
This commit is contained in:
@@ -1011,11 +1011,12 @@ fn link_natively(
|
||||
(Strip::Debuginfo, _) => {
|
||||
strip_with_external_utility(sess, stripcmd, out_filename, &["--strip-debug"])
|
||||
}
|
||||
// Per the manpage, `-x` is the maximum safe strip level for dynamic libraries. (#93988)
|
||||
|
||||
// Per the manpage, --discard-all is the maximum safe strip level for dynamic libraries. (#93988)
|
||||
(
|
||||
Strip::Symbols,
|
||||
CrateType::Dylib | CrateType::Cdylib | CrateType::ProcMacro | CrateType::Sdylib,
|
||||
) => strip_with_external_utility(sess, stripcmd, out_filename, &["-x"]),
|
||||
) => strip_with_external_utility(sess, stripcmd, out_filename, &["--discard-all"]),
|
||||
(Strip::Symbols, _) => {
|
||||
strip_with_external_utility(sess, stripcmd, out_filename, &["--strip-all"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user