@@ -49,7 +49,6 @@ const RECOGNIZED_TRIPLES: &[&str] = &[
4949 "s390x-unknown-linux-gnu" ,
5050 "thumbv7k-apple-watchos" ,
5151 "x86_64-apple-darwin" ,
52- "x86_64-apple-ios" ,
5352 "x86_64-apple-tvos" ,
5453 "x86_64-apple-watchos" ,
5554 "x86_64-pc-windows-msvc" ,
@@ -491,49 +490,6 @@ static DARWIN_ALLOWED_DYLIBS: Lazy<Vec<MachOAllowedDylib>> = Lazy::new(|| {
491490 . to_vec ( )
492491} ) ;
493492
494- static IOS_ALLOWED_DYLIBS : Lazy < Vec < MachOAllowedDylib > > = Lazy :: new ( || {
495- [
496- MachOAllowedDylib {
497- name : "@executable_path/../lib/libpython3.10.dylib" . to_string ( ) ,
498- max_compatibility_version : "3.10.0" . try_into ( ) . unwrap ( ) ,
499- required : false ,
500- } ,
501- MachOAllowedDylib {
502- name : "@executable_path/../lib/libpython3.10d.dylib" . to_string ( ) ,
503- max_compatibility_version : "3.10.0" . try_into ( ) . unwrap ( ) ,
504- required : false ,
505- } ,
506- MachOAllowedDylib {
507- name : "@executable_path/../lib/libpython3.11.dylib" . to_string ( ) ,
508- max_compatibility_version : "3.11.0" . try_into ( ) . unwrap ( ) ,
509- required : false ,
510- } ,
511- MachOAllowedDylib {
512- name : "@executable_path/../lib/libpython3.11d.dylib" . to_string ( ) ,
513- max_compatibility_version : "3.11.0" . try_into ( ) . unwrap ( ) ,
514- required : false ,
515- } ,
516- // For some reason, CoreFoundation is present in debug/noopt builds but not
517- // LTO builds.
518- MachOAllowedDylib {
519- name : "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation" . to_string ( ) ,
520- max_compatibility_version : "150.0.0" . try_into ( ) . unwrap ( ) ,
521- required : false ,
522- } ,
523- MachOAllowedDylib {
524- name : "/usr/lib/libSystem.B.dylib" . to_string ( ) ,
525- max_compatibility_version : "1.0.0" . try_into ( ) . unwrap ( ) ,
526- required : true ,
527- } ,
528- MachOAllowedDylib {
529- name : "/usr/lib/libz.1.dylib" . to_string ( ) ,
530- max_compatibility_version : "1.0.0" . try_into ( ) . unwrap ( ) ,
531- required : true ,
532- } ,
533- ]
534- . to_vec ( )
535- } ) ;
536-
537493static ALLOWED_DYLIBS_BY_MODULE : Lazy < HashMap < & ' static str , Vec < MachOAllowedDylib > > > =
538494 Lazy :: new ( || {
539495 [ (
@@ -574,7 +530,6 @@ static PLATFORM_TAG_BY_TRIPLE: Lazy<HashMap<&'static str, &'static str>> = Lazy:
574530 ( "riscv64-unknown-linux-gnu" , "linux-riscv64" ) ,
575531 ( "s390x-unknown-linux-gnu" , "linux-s390x" ) ,
576532 ( "x86_64-apple-darwin" , "macosx-10.15-x86_64" ) ,
577- ( "x86_64-apple-ios" , "iOS-x86_64" ) ,
578533 ( "x86_64-pc-windows-msvc" , "win-amd64" ) ,
579534 ( "x86_64-unknown-linux-gnu" , "linux-x86_64" ) ,
580535 ( "x86_64_v2-unknown-linux-gnu" , "linux-x86_64" ) ,
@@ -879,7 +834,6 @@ fn allowed_dylibs_for_triple(triple: &str) -> Vec<MachOAllowedDylib> {
879834 match triple {
880835 "aarch64-apple-darwin" => DARWIN_ALLOWED_DYLIBS . clone ( ) ,
881836 "x86_64-apple-darwin" => DARWIN_ALLOWED_DYLIBS . clone ( ) ,
882- "x86_64-apple-ios" => IOS_ALLOWED_DYLIBS . clone ( ) ,
883837 _ => vec ! [ ] ,
884838 }
885839}
@@ -1221,7 +1175,6 @@ fn validate_macho<Mach: MachHeader<Endian = Endianness>>(
12211175 let wanted_cpu_type = match target_triple {
12221176 "aarch64-apple-darwin" => object:: macho:: CPU_TYPE_ARM64 ,
12231177 "x86_64-apple-darwin" => object:: macho:: CPU_TYPE_X86_64 ,
1224- "x86_64-apple-ios" => object:: macho:: CPU_TYPE_X86_64 ,
12251178 _ => return Err ( anyhow ! ( "unhandled target triple: {}" , target_triple) ) ,
12261179 } ;
12271180
0 commit comments