1 use super::apple_base::{ios_llvm_target, opts, Arch};
2 use crate::spec::{Target, TargetOptions};
4 pub fn target() -> Target {
5 let arch = Arch::Armv7;
7 // Clang automatically chooses a more specific target based on
8 // IPHONEOS_DEPLOYMENT_TARGET.
9 // This is required for the target to pick the right
10 // MACH-O commands, so we do too.
11 llvm_target: ios_llvm_target(arch).into(),
13 data_layout: "e-m:o-p:32:32-Fi8-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32".into(),
14 arch: arch.target_arch(),
15 options: TargetOptions {
16 features: "+v7,+vfp3,+neon".into(),
17 max_atomic_width: Some(64),