|
| 1 | +use super::apple_sdk_base::{opts, Arch}; |
| 2 | +use crate::spec::{LinkerFlavor, Target, TargetOptions}; |
| 3 | + |
| 4 | +pub fn target() -> Target { |
| 5 | + let base = opts(Arch::Arm64_macabi); |
| 6 | + Target { |
| 7 | + llvm_target: "arm64-apple-ios14.2-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-i64:64-i128:128-n32:64-S128".to_string(), |
| 12 | + arch: "aarch64".to_string(), |
| 13 | + target_os: "ios".to_string(), |
| 14 | + target_env: String::new(), |
| 15 | + target_vendor: "apple".to_string(), |
| 16 | + linker_flavor: LinkerFlavor::Gcc, |
| 17 | + options: TargetOptions { |
| 18 | + features: "+neon,+fp-armv8,+apple-a12".to_string(), |
| 19 | + eliminate_frame_pointer: false, |
| 20 | + max_atomic_width: Some(128), |
| 21 | + unsupported_abis: super::arm_base::unsupported_abis(), |
| 22 | + forces_embed_bitcode: true, |
| 23 | + // Taken from a clang build on Xcode 11.4.1. |
| 24 | + // These arguments are not actually invoked - they just have |
| 25 | + // to look right to pass App Store validation. |
| 26 | + bitcode_llvm_cmdline: "-triple\0\ |
| 27 | + arm64-apple-ios14.2-macabi\0\ |
| 28 | + -emit-obj\0\ |
| 29 | + -disable-llvm-passes\0\ |
| 30 | + -Os\0" |
| 31 | + .to_string(), |
| 32 | + ..base |
| 33 | + }, |
| 34 | + } |
| 35 | +} |
0 commit comments