mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Solaris linker does not support --strip-debug
Fixes #121381
(cherry picked from commit a17211b05c)
This commit is contained in:
@@ -626,7 +626,7 @@ fn debuginfo(&mut self, strip: Strip, _: &[PathBuf]) {
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user