about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2025-02-11 11:02:36 +0100
committerMads Marquart <mads@marquart.dk>2025-04-04 15:02:22 +0200
commit7e4379c4eb25a423b8484d99b01bfc8f5bb7efd8 (patch)
treef7a078ac4def59c185aa0b7e1e2ae77aabfc7415 /compiler/rustc_driver_impl
parentd74ce25b65e60cd5ccade3c6fd4234dbd201bda8 (diff)
downloadrust-7e4379c4eb25a423b8484d99b01bfc8f5bb7efd8.tar.gz
rust-7e4379c4eb25a423b8484d99b01bfc8f5bb7efd8.zip
refactor: Move env parsing of deployment target to rustc_session
Diffstat (limited to 'compiler/rustc_driver_impl')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 12f85c23a14..e7833e201a1 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -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)]