@@ -212,9 +212,9 @@ fn unversioned_llvm_target(os: &Os, arch: Arch, env: TargetEnv) -> StaticCow<str
212212 // https://github.com/llvm/llvm-project/blob/llvmorg-18.1.8/llvm/lib/TargetParser/Triple.cpp#L236-L282
213213 let os = match os {
214214 Os :: MacOs => "macosx" ,
215- Os :: Ios => "ios" ,
215+ Os :: IOs => "ios" ,
216216 Os :: WatchOs => "watchos" ,
217- Os :: Tvos => "tvos" ,
217+ Os :: TvOs => "tvos" ,
218218 Os :: VisionOs => "xros" ,
219219 _ => unreachable ! ( "tried to get LLVM target OS for non-Apple platform" ) ,
220220 } ;
@@ -304,8 +304,8 @@ impl OSVersion {
304304 // ```
305305 let ( major, minor, patch) = match os {
306306 Os :: MacOs => ( 10 , 12 , 0 ) ,
307- Os :: Ios => ( 10 , 0 , 0 ) ,
308- Os :: Tvos => ( 10 , 0 , 0 ) ,
307+ Os :: IOs => ( 10 , 0 , 0 ) ,
308+ Os :: TvOs => ( 10 , 0 , 0 ) ,
309309 Os :: WatchOs => ( 5 , 0 , 0 ) ,
310310 Os :: VisionOs => ( 1 , 0 , 0 ) ,
311311 other => {
@@ -325,12 +325,12 @@ impl OSVersion {
325325 pub fn minimum_deployment_target ( target : & Target ) -> Self {
326326 let ( major, minor, patch) = match ( & target. os , & target. arch , & target. env ) {
327327 ( Os :: MacOs , crate :: spec:: Arch :: AArch64 , _) => ( 11 , 0 , 0 ) ,
328- ( Os :: Ios , crate :: spec:: Arch :: AArch64 , Env :: MacAbi ) => ( 14 , 0 , 0 ) ,
329- ( Os :: Ios , crate :: spec:: Arch :: AArch64 , Env :: Sim ) => ( 14 , 0 , 0 ) ,
330- ( Os :: Ios , _, _) if target. llvm_target . starts_with ( "arm64e" ) => ( 14 , 0 , 0 ) ,
328+ ( Os :: IOs , crate :: spec:: Arch :: AArch64 , Env :: MacAbi ) => ( 14 , 0 , 0 ) ,
329+ ( Os :: IOs , crate :: spec:: Arch :: AArch64 , Env :: Sim ) => ( 14 , 0 , 0 ) ,
330+ ( Os :: IOs , _, _) if target. llvm_target . starts_with ( "arm64e" ) => ( 14 , 0 , 0 ) ,
331331 // Mac Catalyst defaults to 13.1 in Clang.
332- ( Os :: Ios , _, Env :: MacAbi ) => ( 13 , 1 , 0 ) ,
333- ( Os :: Tvos , crate :: spec:: Arch :: AArch64 , Env :: Sim ) => ( 14 , 0 , 0 ) ,
332+ ( Os :: IOs , _, Env :: MacAbi ) => ( 13 , 1 , 0 ) ,
333+ ( Os :: TvOs , crate :: spec:: Arch :: AArch64 , Env :: Sim ) => ( 14 , 0 , 0 ) ,
334334 ( Os :: WatchOs , crate :: spec:: Arch :: AArch64 , Env :: Sim ) => ( 7 , 0 , 0 ) ,
335335 // True Aarch64 on watchOS (instead of their Aarch64 Ilp32 called `arm64_32`) has been
336336 // available since Xcode 14, but it's only actually used more recently in watchOS 26.
@@ -349,9 +349,9 @@ impl OSVersion {
349349pub fn deployment_target_env_var ( os : & Os ) -> & ' static str {
350350 match os {
351351 Os :: MacOs => "MACOSX_DEPLOYMENT_TARGET" ,
352- Os :: Ios => "IPHONEOS_DEPLOYMENT_TARGET" ,
352+ Os :: IOs => "IPHONEOS_DEPLOYMENT_TARGET" ,
353353 Os :: WatchOs => "WATCHOS_DEPLOYMENT_TARGET" ,
354- Os :: Tvos => "TVOS_DEPLOYMENT_TARGET" ,
354+ Os :: TvOs => "TVOS_DEPLOYMENT_TARGET" ,
355355 Os :: VisionOs => "XROS_DEPLOYMENT_TARGET" ,
356356 _ => unreachable ! ( "tried to get deployment target env var for non-Apple platform" ) ,
357357 }
0 commit comments