]> git.proxmox.com Git - rustc.git/blob - src/librustc_target/spec/x86_64_apple_ios_macabi.rs
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_target / spec / x86_64_apple_ios_macabi.rs
1 use super::apple_sdk_base::{opts, AppleOS, Arch};
2 use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
3
4 pub fn target() -> TargetResult {
5 let base = opts(Arch::X86_64_macabi, AppleOS::iOS)?;
6 Ok(Target {
7 llvm_target: "x86_64-apple-ios13.0-macabi".to_string(),
8 target_endian: "little".to_string(),
9 target_pointer_width: "64".to_string(),
10 target_c_int_width: "32".to_string(),
11 data_layout: "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
12 .to_string(),
13 arch: "x86_64".to_string(),
14 target_os: "ios".to_string(),
15 target_env: String::new(),
16 target_vendor: "apple".to_string(),
17 linker_flavor: LinkerFlavor::Gcc,
18 options: TargetOptions { max_atomic_width: Some(64), stack_probes: true, ..base },
19 })
20 }