]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/armv7_apple_ios.rs
Rollup merge of #104732 - WaffleLapkin:from_def_idn't, r=compiler-errors
[rust.git] / compiler / rustc_target / src / spec / armv7_apple_ios.rs
1 use super::apple_base::{ios_llvm_target, opts, Arch};
2 use crate::spec::{Target, TargetOptions};
3
4 pub fn target() -> Target {
5     let arch = Arch::Armv7;
6     Target {
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(),
12         pointer_width: 32,
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),
18             ..opts("ios", arch)
19         },
20     }
21 }