Implement most of MCP510 by lqd · Pull Request #112910 · rust-lang/rust (original) (raw)
do you want the CLI to be able to select actual
LinkerFlavor
s (directly, without usingLinkerFlavorCli
)
I actually planned to implement it next weekend.
So, yes, but not necessarily in this PR.
Like this
pub enum LinkerFlavorCli { // New Gnu(Cc, Lld), Darwin(Cc, Lld), WasmLld(Cc), Unix(Cc), Msvc(Lld), EmCc, Bpf, Ptx, // Old Gcc, Ld, Lld(LldFlavor), Msvc, Em, BpfLinker, PtxLinker, }
Then some of the old ones can be removed because they are tier 3, and the rest of them will be supported forever (i.e. this is not even a migration).
Then I wanted to add a couple of new "generic" flavors like *-cc
or *-lld-*
where the unspecified parts would be inferred from the target spec (the actual user-visible names won't contain *
s of course).