mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-02 14:07:10 +00:00
linker: Use `--as-needed` by default when linker supports it Do it in a centralized way in `link.rs` instead of individual target specs. Majority of relevant target specs were already passing it.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.