File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ fn mk_session(matches: getopts::Matches) -> (Session, Cfg) {
41
41
42
42
let sysroot = filesearch:: materialize_sysroot ( sessopts. maybe_sysroot . clone ( ) ) ;
43
43
44
- let target_cfg = rustc_session:: config:: build_target_config ( & early_dcx, & sessopts, & sysroot) ;
44
+ let target = rustc_session:: config:: build_target_config ( & early_dcx, & sessopts, & sysroot) ;
45
45
46
46
let sess = build_session (
47
47
early_dcx,
@@ -52,7 +52,7 @@ fn mk_session(matches: getopts::Matches) -> (Session, Cfg) {
52
52
vec ! [ ] ,
53
53
Default :: default ( ) ,
54
54
None ,
55
- target_cfg ,
55
+ target ,
56
56
sysroot,
57
57
"" ,
58
58
None ,
Original file line number Diff line number Diff line change @@ -1008,7 +1008,7 @@ pub fn build_session(
1008
1008
fluent_resources : Vec < & ' static str > ,
1009
1009
driver_lint_caps : FxHashMap < lint:: LintId , lint:: Level > ,
1010
1010
file_loader : Option < Box < dyn FileLoader + Send + Sync + ' static > > ,
1011
- target_cfg : Target ,
1011
+ target : Target ,
1012
1012
sysroot : PathBuf ,
1013
1013
cfg_version : & ' static str ,
1014
1014
ice_file : Option < PathBuf > ,
@@ -1036,7 +1036,7 @@ pub fn build_session(
1036
1036
1037
1037
let loader = file_loader. unwrap_or_else ( || Box :: new ( RealFileLoader ) ) ;
1038
1038
let hash_kind = sopts. unstable_opts . src_hash_algorithm . unwrap_or_else ( || {
1039
- if target_cfg . is_like_msvc {
1039
+ if target . is_like_msvc {
1040
1040
SourceFileHashAlgorithm :: Sha256
1041
1041
} else {
1042
1042
SourceFileHashAlgorithm :: Md5
@@ -1117,11 +1117,10 @@ pub fn build_session(
1117
1117
_ => CtfeBacktrace :: Disabled ,
1118
1118
} ) ;
1119
1119
1120
- let asm_arch =
1121
- if target_cfg. allow_asm { InlineAsmArch :: from_str ( & target_cfg. arch ) . ok ( ) } else { None } ;
1120
+ let asm_arch = if target. allow_asm { InlineAsmArch :: from_str ( & target. arch ) . ok ( ) } else { None } ;
1122
1121
1123
1122
let sess = Session {
1124
- target : target_cfg ,
1123
+ target,
1125
1124
host,
1126
1125
opts : sopts,
1127
1126
host_tlib_path,
You can’t perform that action at this time.
0 commit comments