1
Fork 0

Rename some target_cfg variables as target.

Because the underlying type is called `Target`. (There is also a
separate type called `TargetCfg`.)
This commit is contained in:
Nicholas Nethercote 2024-03-21 11:40:13 +11:00
parent 23ee523ea6
commit 5744be2727
2 changed files with 6 additions and 7 deletions

View file

@ -41,7 +41,7 @@ fn mk_session(matches: getopts::Matches) -> (Session, Cfg) {
let sysroot = filesearch::materialize_sysroot(sessopts.maybe_sysroot.clone());
let target_cfg = rustc_session::config::build_target_config(&early_dcx, &sessopts, &sysroot);
let target = rustc_session::config::build_target_config(&early_dcx, &sessopts, &sysroot);
let sess = build_session(
early_dcx,
@ -52,7 +52,7 @@ fn mk_session(matches: getopts::Matches) -> (Session, Cfg) {
vec![],
Default::default(),
None,
target_cfg,
target,
sysroot,
"",
None,