We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e678c commit 03f9efeCopy full SHA for 03f9efe
compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -566,9 +566,7 @@ impl<'a> Linker for GccLinker<'a> {
566
}
567
568
fn no_gc_sections(&mut self) {
569
- if self.sess.target.is_like_osx {
570
- self.linker_arg("-no_dead_strip");
571
- } else if self.sess.target.linker_is_gnu || self.sess.target.is_like_wasm {
+ if self.sess.target.linker_is_gnu || self.sess.target.is_like_wasm {
572
self.linker_arg("--no-gc-sections");
573
574
0 commit comments