mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
cb6f8fa422
Using `cc_args` panics when using `-Clinker-flavor=ld`, because the arguments are in a form tailored for `-Clinker-flavor=gcc`. So instead, we use `link_args` and let that wrap the arguments with the appropriate `-Wl` or `-Xlinker` when needed.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.