Defer Apple SDKROOT detection to link time.

This commit is contained in:
Eric Huss
2020-09-25 12:07:46 -07:00
parent b984ef6797
commit c29a29cba0
10 changed files with 104 additions and 128 deletions

View File

@@ -1,8 +1,8 @@
use super::apple_sdk_base::{opts, AppleOS, Arch};
use super::apple_sdk_base::{opts, Arch};
use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
pub fn target() -> TargetResult {
let base = opts(Arch::Armv7, AppleOS::iOS)?;
let base = opts(Arch::Armv7);
Ok(Target {
llvm_target: "armv7-apple-ios".to_string(),
target_endian: "little".to_string(),