Skip to content

Commit 8ab24c9

Browse files
authored
Rollup merge of #121399 - psumbera:solaris-strip-debug, r=petrochenkov
Solaris linker does not support --strip-debug Fixes #121381
2 parents 64dbc3f + a17211b commit 8ab24c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ impl<'a> Linker for GccLinker<'a> {
626626
// it does support --strip-all as a compatibility alias for -s.
627627
// The --strip-debug case is handled by running an external
628628
// `strip` utility as a separate step after linking.
629-
if self.sess.target.os != "illumos" {
629+
if !self.sess.target.is_like_solaris {
630630
self.linker_arg("--strip-debug");
631631
}
632632
}

0 commit comments

Comments
 (0)