prepare stabilization of modern linker-flavors
fix a few comments
This commit is contained in:
@@ -164,11 +164,11 @@ pub enum LinkerFlavor {
|
||||
|
||||
/// Linker flavors available externally through command line (`-Clinker-flavor`)
|
||||
/// or json target specifications.
|
||||
/// FIXME: This set has accumulated historically, bring it more in line with the internal
|
||||
/// linker flavors (`LinkerFlavor`).
|
||||
/// This set has accumulated historically, and contains both (stable and unstable) legacy values, as
|
||||
/// well as modern ones matching the internal linker flavors (`LinkerFlavor`).
|
||||
#[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd)]
|
||||
pub enum LinkerFlavorCli {
|
||||
// New (unstable) flavors, with direct counterparts in `LinkerFlavor`.
|
||||
// Modern (unstable) flavors, with direct counterparts in `LinkerFlavor`.
|
||||
Gnu(Cc, Lld),
|
||||
Darwin(Cc, Lld),
|
||||
WasmLld(Cc),
|
||||
@@ -179,7 +179,7 @@ pub enum LinkerFlavorCli {
|
||||
Bpf,
|
||||
Ptx,
|
||||
|
||||
// Below: the legacy stable values.
|
||||
// Legacy stable values
|
||||
Gcc,
|
||||
Ld,
|
||||
Lld(LldFlavor),
|
||||
@@ -504,7 +504,7 @@ linker_flavor_cli_impls! {
|
||||
(LinkerFlavorCli::Bpf) "bpf"
|
||||
(LinkerFlavorCli::Ptx) "ptx"
|
||||
|
||||
// Below: legacy stable values
|
||||
// Legacy stable flavors
|
||||
(LinkerFlavorCli::Gcc) "gcc"
|
||||
(LinkerFlavorCli::Ld) "ld"
|
||||
(LinkerFlavorCli::Lld(LldFlavor::Ld)) "ld.lld"
|
||||
|
||||
Reference in New Issue
Block a user