refactor: Move env parsing of deployment target to rustc_session
This commit is contained in:
parent
d74ce25b65
commit
7e4379c4eb
11 changed files with 74 additions and 75 deletions
|
@ -34,7 +34,6 @@ use std::time::{Instant, SystemTime};
|
|||
use std::{env, str};
|
||||
|
||||
use rustc_ast as ast;
|
||||
use rustc_codegen_ssa::back::apple;
|
||||
use rustc_codegen_ssa::traits::CodegenBackend;
|
||||
use rustc_codegen_ssa::{CodegenErrors, CodegenResults};
|
||||
use rustc_data_structures::profiling::{
|
||||
|
@ -810,8 +809,8 @@ fn print_crate_info(
|
|||
if sess.target.is_like_darwin {
|
||||
println_info!(
|
||||
"{}={}",
|
||||
apple::deployment_target_env_var(&sess.target.os),
|
||||
apple::deployment_target(sess).fmt_pretty(),
|
||||
rustc_target::spec::apple::deployment_target_env_var(&sess.target.os),
|
||||
sess.apple_deployment_target().fmt_pretty(),
|
||||
)
|
||||
} else {
|
||||
#[allow(rustc::diagnostic_outside_of_impl)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue