Skip to content

Commit

Permalink
Solaris linker does not support --strip-debug
Browse files Browse the repository at this point in the history
Fixes #121381
  • Loading branch information
psumbera committed Feb 21, 2024
1 parent 1d447a9 commit a17211b
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 a17211b

Please sign in to comment.