]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/i386_apple_ios.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / i386_apple_ios.rs
CommitLineData
6522a427 1use super::apple_base::{ios_sim_llvm_target, opts, Arch};
5869c6ff 2use crate::spec::{StackProbeType, Target, TargetOptions};
1a4d82fc 3
29967ef6 4pub fn target() -> Target {
6522a427 5 let arch = Arch::I386;
29967ef6 6 Target {
6522a427
EL
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_sim_llvm_target(arch).into(),
29967ef6 12 pointer_width: 32,
dfeec247
XL
13 data_layout: "e-m:o-p:32:32-p270:32:32-p271:32:32-p272:64:64-\
14 f64:32:64-f80:128-n8:16:32-S128"
5e7ed085 15 .into(),
6522a427 16 arch: arch.target_arch(),
5869c6ff
XL
17 options: TargetOptions {
18 max_atomic_width: Some(64),
2b03887a 19 stack_probes: StackProbeType::X86,
6522a427 20 ..opts("ios", arch)
5869c6ff 21 },
29967ef6 22 }
1a4d82fc 23}