We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0f045 commit 09b634aCopy full SHA for 09b634a
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -1087,7 +1087,9 @@ fn link_natively(
1087
let strip = sess.opts.cg.strip;
1088
1089
if sess.target.is_like_osx {
1090
- let stripcmd = "/usr/bin/strip";
+ // Use system `strip` when running on host macOS.
1091
+ // <https://github.com/rust-lang/rust/pull/130781>
1092
+ let stripcmd = if cfg!(target_os = "macos") { "/usr/bin/strip" } else { "strip" };
1093
match (strip, crate_type) {
1094
(Strip::Debuginfo, _) => {
1095
strip_symbols_with_external_utility(sess, stripcmd, out_filename, Some("-S"))
0 commit comments