diff options
| author | Petr Sumbera <sumbera@volny.cz> | 2024-02-21 16:49:01 +0100 |
|---|---|---|
| committer | Petr Sumbera <sumbera@volny.cz> | 2024-02-21 16:49:01 +0100 |
| commit | a17211b05c883eaeb4057f0a9207947bcbcc3688 (patch) | |
| tree | b382e3a04c486dba35aa80abd371499d48ed5f3b /compiler/rustc_codegen_ssa/src | |
| parent | 1d447a9946effc38c4b964a888ab408a3df3c246 (diff) | |
| download | rust-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.rs | 2 |
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"); } } |
