diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-08-02 20:36:45 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-08-02 21:07:46 +0500 |
| commit | f87e829d6e8782ac719acb38236d4eeae06f62dd (patch) | |
| tree | 0ca258fdb18dda228979a9dceef26a77ead3ff2b /compiler/rustc_codegen_ssa/src/back/link.rs | |
| parent | 889701db1ff614160314734fe4138c2f820a95bb (diff) | |
| download | rust-f87e829d6e8782ac719acb38236d4eeae06f62dd.tar.gz rust-f87e829d6e8782ac719acb38236d4eeae06f62dd.zip | |
update flags for consistency
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/link.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index 162fbf3d6e2..b69fbf61185 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -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"]) } |
