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