about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorPetr Sumbera <sumbera@volny.cz>2024-02-21 16:49:01 +0100
committerPetr Sumbera <sumbera@volny.cz>2024-02-21 16:49:01 +0100
commita17211b05c883eaeb4057f0a9207947bcbcc3688 (patch)
treeb382e3a04c486dba35aa80abd371499d48ed5f3b /compiler/rustc_codegen_ssa/src
parent1d447a9946effc38c4b964a888ab408a3df3c246 (diff)
downloadrust-a17211b05c883eaeb4057f0a9207947bcbcc3688.tar.gz
rust-a17211b05c883eaeb4057f0a9207947bcbcc3688.zip
Solaris linker does not support --strip-debug
Fixes #121381
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/linker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs
index 9f06f398288..1f3383815e2 100644
--- a/compiler/rustc_codegen_ssa/src/back/linker.rs
+++ b/compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -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");
                 }
             }