Skip to content

Commit

Permalink
Rollup merge of #121399 - psumbera:solaris-strip-debug, r=petrochenkov
Browse files Browse the repository at this point in the history
Solaris linker does not support --strip-debug

Fixes #121381
  • Loading branch information
matthiaskrgr authored Feb 21, 2024
2 parents 64dbc3f + a17211b commit 8ab24c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ impl<'a> Linker for GccLinker<'a> {
// it does support --strip-all as a compatibility alias for -s.
// The --strip-debug case is handled by running an external
// `strip` utility as a separate step after linking.
if self.sess.target.os != "illumos" {
if !self.sess.target.is_like_solaris {
self.linker_arg("--strip-debug");
}
}
Expand Down

0 comments on commit 8ab24c9

Please sign in to comment.