]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/i386_apple_ios.rs
Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup
[rust.git] / compiler / rustc_target / src / spec / i386_apple_ios.rs
1 use super::apple_sdk_base::{opts, Arch};
2 use crate::spec::{StackProbeType, Target, TargetOptions};
3
4 pub fn target() -> Target {
5     let base = opts("ios", Arch::I386);
6     Target {
7         llvm_target: "i386-apple-ios".to_string(),
8         pointer_width: 32,
9         data_layout: "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
10             f64:32:64-f80:128-n8:16:32-S128"
11             .to_string(),
12         arch: "x86".to_string(),
13         options: TargetOptions {
14             max_atomic_width: Some(64),
15             stack_probes: StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) },
16             ..base
17         },
18     }
19 }