Skip to content

Commit 03f9efe

Browse files
committed
fix: remove fake no_dead_strip for osx
1 parent 05e678c commit 03f9efe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: compiler/rustc_codegen_ssa/src/back/linker.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,7 @@ impl<'a> Linker for GccLinker<'a> {
566566
}
567567

568568
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 {
569+
if self.sess.target.linker_is_gnu || self.sess.target.is_like_wasm {
572570
self.linker_arg("--no-gc-sections");
573571
}
574572
}

0 commit comments

Comments
 (0)