@@ -5,7 +5,7 @@ use crate::lint;
5
5
use crate :: search_paths:: SearchPath ;
6
6
use crate :: utils:: NativeLib ;
7
7
use rustc_errors:: LanguageIdentifier ;
8
- use rustc_target:: spec:: { CodeModel , LinkerFlavor , MergeFunctions , PanicStrategy , SanitizerSet } ;
8
+ use rustc_target:: spec:: { CodeModel , LinkerFlavorCli , MergeFunctions , PanicStrategy , SanitizerSet } ;
9
9
use rustc_target:: spec:: {
10
10
RelocModel , RelroLevel , SplitDebuginfo , StackProtector , TargetTriple , TlsModel ,
11
11
} ;
@@ -382,7 +382,7 @@ mod desc {
382
382
"either a boolean (`yes`, `no`, `on`, `off`, etc), `checks`, or `nochecks`" ;
383
383
pub const parse_cfprotection: & str = "`none`|`no`|`n` (default), `branch`, `return`, or `full`|`yes`|`y` (equivalent to `branch` and `return`)" ;
384
384
pub const parse_strip: & str = "either `none`, `debuginfo`, or `symbols`" ;
385
- pub const parse_linker_flavor: & str = :: rustc_target:: spec:: LinkerFlavor :: one_of ( ) ;
385
+ pub const parse_linker_flavor: & str = :: rustc_target:: spec:: LinkerFlavorCli :: one_of ( ) ;
386
386
pub const parse_optimization_fuel: & str = "crate=integer" ;
387
387
pub const parse_mir_spanview: & str = "`statement` (default), `terminator`, or `block`" ;
388
388
pub const parse_instrument_coverage: & str =
@@ -763,8 +763,8 @@ mod parse {
763
763
true
764
764
}
765
765
766
- pub ( crate ) fn parse_linker_flavor ( slot : & mut Option < LinkerFlavor > , v : Option < & str > ) -> bool {
767
- match v. and_then ( LinkerFlavor :: from_str) {
766
+ pub ( crate ) fn parse_linker_flavor ( slot : & mut Option < LinkerFlavorCli > , v : Option < & str > ) -> bool {
767
+ match v. and_then ( LinkerFlavorCli :: from_str) {
768
768
Some ( lf) => * slot = Some ( lf) ,
769
769
_ => return false ,
770
770
}
@@ -1139,7 +1139,7 @@ options! {
1139
1139
on C toolchain installed in the system" ) ,
1140
1140
linker: Option <PathBuf > = ( None , parse_opt_pathbuf, [ UNTRACKED ] ,
1141
1141
"system linker to link outputs with" ) ,
1142
- linker_flavor: Option <LinkerFlavor > = ( None , parse_linker_flavor, [ UNTRACKED ] ,
1142
+ linker_flavor: Option <LinkerFlavorCli > = ( None , parse_linker_flavor, [ UNTRACKED ] ,
1143
1143
"linker flavor" ) ,
1144
1144
linker_plugin_lto: LinkerPluginLto = ( LinkerPluginLto :: Disabled ,
1145
1145
parse_linker_plugin_lto, [ TRACKED ] ,
0 commit comments