|
1 | | - |
2 | 1 | use crate::spec::{LinkArgs, LinkerFlavor, TargetOptions}; |
3 | 2 | use std::env; |
4 | 3 | use std::io; |
@@ -102,14 +101,14 @@ pub fn get_sdk_root(sdk_name: &str) -> Result<String, String> { |
102 | 101 |
|
103 | 102 | fn build_pre_link_args(arch: Arch, os: AppleOS) -> Result<LinkArgs, String> { |
104 | 103 | let sdk_name = match (arch, os) { |
105 | | - (Arm64, AppleOS::tvOS) => "appletvos", |
106 | | - (X86_64, AppleOS::tvOS) => "appletvsimulator", |
107 | | - (Armv7, AppleOS::iOS) => "iphoneos", |
108 | | - (Armv7s, AppleOS::iOS) => "iphoneos", |
109 | | - (Arm64, AppleOS::iOS) => "iphoneos", |
110 | | - (I386, AppleOS::iOS) => "iphonesimulator", |
111 | | - (X86_64, AppleOS::iOS) => "iphonesimulator", |
112 | | - (X86_64_macabi, AppleOS::iOS) => "macosx10.15", |
| 104 | + (Arm64, AppleOS::tvOS) => "appletvos", |
| 105 | + (X86_64, AppleOS::tvOS) => "appletvsimulator", |
| 106 | + (Armv7, AppleOS::iOS) => "iphoneos", |
| 107 | + (Armv7s, AppleOS::iOS) => "iphoneos", |
| 108 | + (Arm64, AppleOS::iOS) => "iphoneos", |
| 109 | + (I386, AppleOS::iOS) => "iphonesimulator", |
| 110 | + (X86_64, AppleOS::iOS) => "iphonesimulator", |
| 111 | + (X86_64_macabi, AppleOS::iOS) => "macosx10.15", |
113 | 112 | _ => unreachable!(), |
114 | 113 | }; |
115 | 114 |
|
@@ -145,11 +144,10 @@ fn target_cpu(arch: Arch) -> String { |
145 | 144 | .to_string() |
146 | 145 | } |
147 | 146 |
|
148 | | - |
149 | 147 | fn link_env_remove(arch: Arch) -> Vec<String> { |
150 | 148 | match arch { |
151 | 149 | Armv7 | Armv7s | Arm64 | I386 | X86_64 => vec!["MACOSX_DEPLOYMENT_TARGET".to_string()], |
152 | | - X86_64_macabi => vec![ "IPHONEOS_DEPLOYMENT_TARGET".to_string() ,], |
| 150 | + X86_64_macabi => vec!["IPHONEOS_DEPLOYMENT_TARGET".to_string()], |
153 | 151 | } |
154 | 152 | } |
155 | 153 |
|
|
0 commit comments