Skip to content

Commit

Permalink
Unrolled build for rust-lang#121399
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#121399 - psumbera:solaris-strip-debug, r=petrochenkov

Solaris linker does not support --strip-debug

Fixes rust-lang#121381
  • Loading branch information
rust-timer authored Feb 22, 2024
2 parents 3406ada + a17211b commit 6900c3c
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 6900c3c

Please sign in to comment.