rust/compiler/rustc_target/src
bors 5aa23be6b6 Auto merge of #116014 - lqd:mcp510-2-electric-boogaloo, r=petrochenkov
Implement `-Clink-self-contained=-linker` opt out

This implements the `-Clink-self-contained` opt out necessary to switch to lld by changing rustc's defaults instead of cargo's.

Components that are enabled and disabled on the CLI are recorded, for the purpose of being merged with the ones which the target spec will declare (I'll open another PR for that tomorrow, for easier review).

For MCP510, we now check whether using the self-contained linker is disabled on the CLI. Right now it would only be sensible to with `-Zgcc-ld=lld` (and I'll add some checks that we don't both enable and disable a component on the CLI in a future PR), but the goal is to simplify adding the check of the target's enabled components here in the follow-up PRs.

r? `@petrochenkov`
2023-10-11 12:11:39 +00:00
..
abi Implement Deref<LayoutS> for Layout 2023-10-02 21:31:16 +02:00
asm add details for csky-unknown-linux-gnuabiv2 and add docs 2023-08-14 23:02:37 +08:00
spec add IntoIterator impl for self-contained linking components 2023-10-08 21:57:39 +00:00
json.rs Use preserve_mostcc for extern "rust-cold" 2023-08-26 17:42:59 -07:00
lib.rs rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00