]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/x86_64_apple_ios_macabi.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / x86_64_apple_ios_macabi.rs
CommitLineData
1b1a35ee 1use super::apple_sdk_base::{opts, Arch};
064997fb 2use crate::spec::{LinkerFlavor, StackProbeType, Target, TargetOptions};
e1599b0c 3
29967ef6 4pub fn target() -> Target {
064997fb
FG
5 let llvm_target = "x86_64-apple-ios13.0-macabi";
6
7 let mut base = opts("ios", Arch::X86_64_macabi);
8 base.add_pre_link_args(LinkerFlavor::Gcc, &["-target", llvm_target]);
9
29967ef6 10 Target {
064997fb 11 llvm_target: llvm_target.into(),
29967ef6 12 pointer_width: 64,
dfeec247 13 data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
5e7ed085
FG
14 .into(),
15 arch: "x86_64".into(),
5869c6ff
XL
16 options: TargetOptions {
17 max_atomic_width: Some(64),
36d6ef2b
XL
18 // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
19 stack_probes: StackProbeType::Call,
5869c6ff
XL
20 ..base
21 },
29967ef6 22 }
e1599b0c 23}