@@ -164,11 +164,11 @@ pub enum LinkerFlavor {
164
164
165
165
/// Linker flavors available externally through command line (`-Clinker-flavor`)
166
166
/// 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`).
169
169
#[ derive( Clone , Copy , Debug , Eq , Ord , PartialEq , PartialOrd ) ]
170
170
pub enum LinkerFlavorCli {
171
- // New (unstable) flavors, with direct counterparts in `LinkerFlavor`.
171
+ // Modern (unstable) flavors, with direct counterparts in `LinkerFlavor`.
172
172
Gnu ( Cc , Lld ) ,
173
173
Darwin ( Cc , Lld ) ,
174
174
WasmLld ( Cc ) ,
@@ -179,7 +179,7 @@ pub enum LinkerFlavorCli {
179
179
Bpf ,
180
180
Ptx ,
181
181
182
- // Below: the legacy stable values.
182
+ // Legacy stable values
183
183
Gcc ,
184
184
Ld ,
185
185
Lld ( LldFlavor ) ,
@@ -504,7 +504,7 @@ linker_flavor_cli_impls! {
504
504
( LinkerFlavorCli :: Bpf ) "bpf"
505
505
( LinkerFlavorCli :: Ptx ) "ptx"
506
506
507
- // Below: legacy stable values
507
+ // Legacy stable flavors
508
508
( LinkerFlavorCli :: Gcc ) "gcc"
509
509
( LinkerFlavorCli :: Ld ) "ld"
510
510
( LinkerFlavorCli :: Lld ( LldFlavor :: Ld ) ) "ld.lld"
0 commit comments