Skip to content

Commit f32ad2b

Browse files
committed
Fixed VISIONOS_DEPLOYMENT_TARGET envar test
1 parent 51777dc commit f32ad2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_target/src/spec/base/apple/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fn link_env_remove(os: &'static str) -> StaticCow<[StaticCow<str>]> {
307307
// although this is apparently ignored when using the linker at "/usr/bin/ld".
308308
env_remove.push("IPHONEOS_DEPLOYMENT_TARGET".into());
309309
env_remove.push("TVOS_DEPLOYMENT_TARGET".into());
310-
env_remove.push("visionos_DEPLOYMENT_TARGET".into());
310+
env_remove.push("VISIONOS_DEPLOYMENT_TARGET".into());
311311
env_remove.into()
312312
} else {
313313
// Otherwise if cross-compiling for a different OS/SDK (including Mac Catalyst), remove any part
@@ -375,7 +375,7 @@ pub fn watchos_sim_llvm_target(arch: Arch) -> String {
375375

376376
fn visionos_deployment_target() -> (u32, u32) {
377377
// If you are looking for the default deployment target, prefer `rustc --print deployment-target`.
378-
from_set_deployment_target("XROS_DEPLOYMENT_TARGET").unwrap_or((1, 0))
378+
from_set_deployment_target("VISIONOS_DEPLOYMENT_TARGET").unwrap_or((1, 0))
379379
}
380380

381381
pub fn visionos_llvm_target(arch: Arch) -> String {

compiler/rustc_target/src/spec/base/apple/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn macos_link_environment_unmodified() {
3434
// for the host.
3535
assert_eq!(
3636
target.link_env_remove,
37-
crate::spec::cvs!["IPHONEOS_DEPLOYMENT_TARGET", "TVOS_DEPLOYMENT_TARGET"],
37+
crate::spec::cvs!["IPHONEOS_DEPLOYMENT_TARGET", "TVOS_DEPLOYMENT_TARGET", "VISIONOS_DEPLOYMENT_TARGET"],
3838
);
3939
}
4040
}

0 commit comments

Comments
 (0)