Rollup merge of #99856 - csmoe:osx-no-dead-strip, r=bjorn3
fix: remove fake no_dead_strip for osx Closes https://github.com/rust-lang/rust/issues/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`
This commit is contained in:
commit
55f041e1f6
1 changed files with 1 additions and 3 deletions
|
@ -566,9 +566,7 @@ impl<'a> Linker for GccLinker<'a> {
|
|||
}
|
||||
|
||||
fn no_gc_sections(&mut self) {
|
||||
if self.sess.target.is_like_osx {
|
||||
self.linker_arg("-no_dead_strip");
|
||||
} 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 {
|
||||
self.linker_arg("--no-gc-sections");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue