Skip to content

Commit 55f041e

Browse files
authored
Rollup merge of rust-lang#99856 - csmoe:osx-no-dead-strip, r=bjorn3
fix: remove fake no_dead_strip for osx Closes rust-lang#99788 Link arg `-no_dead_strip` doesn't exist on OSX at all. The `no_gc_sections` function was never called before export-executable-symols implementation, and `export-executable-symbols` still works, so we just remove it. r? `@bjorn3`
2 parents 889497c + 03f9efe commit 55f041e

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)