diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-02-21 22:49:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-21 22:49:00 +0100 |
| commit | 8ab24c9fc0c019b5111908254d9cc2c568e95833 (patch) | |
| tree | 895848229fd4fdb58fc3c4d35e49ea9fcf9e7c87 /compiler | |
| parent | 64dbc3f38f3ec80ad6c9246a2342810abd4c6daa (diff) | |
| parent | a17211b05c883eaeb4057f0a9207947bcbcc3688 (diff) | |
| download | rust-8ab24c9fc0c019b5111908254d9cc2c568e95833.tar.gz rust-8ab24c9fc0c019b5111908254d9cc2c568e95833.zip | |
Rollup merge of #121399 - psumbera:solaris-strip-debug, r=petrochenkov
Solaris linker does not support --strip-debug Fixes #121381
Diffstat (limited to 'compiler')
| -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"); } } |
