@@ -164,11 +164,11 @@ pub enum LinkerFlavor {
164164
165165/// Linker flavors available externally through command line (`-Clinker-flavor`)
166166/// or json target specifications.
167- /// FIXME: This set has accumulated historically, bring it more in line with the internal
168- /// linker flavors (`LinkerFlavor`).
167+ /// This set has accumulated historically, and contains both (stable and unstable) legacy values, as
168+ /// well as modern ones matching the internal linker flavors (`LinkerFlavor`).
169169#[ derive( Clone , Copy , Debug , Eq , Ord , PartialEq , PartialOrd ) ]
170170pub enum LinkerFlavorCli {
171- // New (unstable) flavors, with direct counterparts in `LinkerFlavor`.
171+ // Modern (unstable) flavors, with direct counterparts in `LinkerFlavor`.
172172 Gnu ( Cc , Lld ) ,
173173 Darwin ( Cc , Lld ) ,
174174 WasmLld ( Cc ) ,
@@ -179,7 +179,7 @@ pub enum LinkerFlavorCli {
179179 Bpf ,
180180 Ptx ,
181181
182- // Below: the legacy stable values.
182+ // Legacy stable values
183183 Gcc ,
184184 Ld ,
185185 Lld ( LldFlavor ) ,
@@ -504,7 +504,7 @@ linker_flavor_cli_impls! {
504504 ( LinkerFlavorCli :: Bpf ) "bpf"
505505 ( LinkerFlavorCli :: Ptx ) "ptx"
506506
507- // Below: legacy stable values
507+ // Legacy stable flavors
508508 ( LinkerFlavorCli :: Gcc ) "gcc"
509509 ( LinkerFlavorCli :: Ld ) "ld"
510510 ( LinkerFlavorCli :: Lld ( LldFlavor :: Ld ) ) "ld.lld"
0 commit comments