Skip to content

Commit e774bc0

Browse files
psumberacuviper
authored andcommitted
Solaris linker does not support --strip-debug
Fixes #121381 (cherry picked from commit a17211b)
1 parent 0656ed6 commit e774bc0

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)