We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7355816 commit 8cf85bcCopy full SHA for 8cf85bc
src/librustc_codegen_ssa/back/linker.rs
@@ -481,10 +481,12 @@ impl<'a> Linker for GccLinker<'a> {
481
match strip {
482
Strip::None => {}
483
Strip::Debuginfo => {
484
- self.linker_arg("--strip-debug");
+ // MacOS linker does not support longhand argument --strip-debug
485
+ self.linker_arg("-S");
486
}
487
Strip::Symbols => {
- self.linker_arg("--strip-all");
488
+ // MacOS linker does not support longhand argument --strip-all
489
+ self.linker_arg("-s");
490
491
492
0 commit comments