]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/spec/i386_apple_ios.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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: super::apple_base::ios_sim_llvm_target("i386"),
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 // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
16 stack_probes: StackProbeType::Call,
17 ..base
18 },
19 }
20 }