]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/aarch64_apple_ios_macabi.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / aarch64_apple_ios_macabi.rs
CommitLineData
fc512014 1use super::apple_sdk_base::{opts, Arch};
136023e0 2use crate::spec::{FramePointer, Target, TargetOptions};
fc512014
XL
3
4pub fn target() -> Target {
fc512014 5 Target {
5e7ed085 6 llvm_target: "arm64-apple-ios14.0-macabi".into(),
fc512014 7 pointer_width: 64,
5e7ed085
FG
8 data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".into(),
9 arch: "aarch64".into(),
fc512014 10 options: TargetOptions {
5e7ed085 11 features: "+neon,+fp-armv8,+apple-a12".into(),
fc512014 12 max_atomic_width: Some(128),
fc512014 13 forces_embed_bitcode: true,
136023e0 14 frame_pointer: FramePointer::NonLeaf,
fc512014
XL
15 // Taken from a clang build on Xcode 11.4.1.
16 // These arguments are not actually invoked - they just have
17 // to look right to pass App Store validation.
18 bitcode_llvm_cmdline: "-triple\0\
6a06907d 19 arm64-apple-ios14.0-macabi\0\
fc512014
XL
20 -emit-obj\0\
21 -disable-llvm-passes\0\
fc512014 22 -Os\0"
5e7ed085 23 .into(),
136023e0 24 ..opts("ios", Arch::Arm64_macabi)
fc512014
XL
25 },
26 }
27}