mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-28 03:24:11 +00:00
fix: remove fake no_dead_strip for osx
This commit is contained in:
parent
05e678ccca
commit
03f9efedb1
@ -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…
x
Reference in New Issue
Block a user