mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
b3cbf7c835
Don't assume that `-Bdynamic` is the default linker mode In particular this is false when passing `-static` or `-static-pie` to the linker, which changes the default to `-Bstatic`. This PR ensures we explicitly initialize the correct mode when we first need it.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.