mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +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.