about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa
diff options
context:
space:
mode:
authorMads Marquart <mads@marquart.dk>2024-11-14 17:43:52 +0100
committerMads Marquart <mads@marquart.dk>2024-11-22 20:46:05 +0100
commit431c500c6071008a00b63db1936af8516b5863ef (patch)
treebfeb352e073b7dcb9168a599a0ef992486e4406a /compiler/rustc_codegen_ssa
parenta47555110cf09b3ed59811d9b02235443e76a595 (diff)
downloadrust-431c500c6071008a00b63db1936af8516b5863ef.tar.gz
rust-431c500c6071008a00b63db1936af8516b5863ef.zip
Print env var in --print=deployment-target
The deployment target environment variable is OS-specific, and if you're
in a place where you're asking `rustc` for the deployment target, you're
likely to also wanna know the environment variable.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/apple.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/apple.rs b/compiler/rustc_codegen_ssa/src/back/apple.rs
index 93d90cd16b2..d9c5c3e5af9 100644
--- a/compiler/rustc_codegen_ssa/src/back/apple.rs
+++ b/compiler/rustc_codegen_ssa/src/back/apple.rs
@@ -97,7 +97,7 @@ fn minimum_deployment_target(target: &Target) -> OSVersion {
 }
 
 /// Name of the environment variable used to fetch the deployment target on the given OS.
-fn deployment_target_env_var(os: &str) -> &'static str {
+pub fn deployment_target_env_var(os: &str) -> &'static str {
     match os {
         "macos" => "MACOSX_DEPLOYMENT_TARGET",
         "ios" => "IPHONEOS_DEPLOYMENT_TARGET",