]>
Commit | Line | Data |
---|---|---|
487cf647 | 1 | use super::apple_base::{opts, Arch}; |
781aab86 | 2 | use crate::spec::{Cc, FramePointer, LinkerFlavor, Lld, SanitizerSet, Target, TargetOptions}; |
fc512014 XL |
3 | |
4 | pub fn target() -> Target { | |
49aad941 | 5 | let llvm_target = "arm64-apple-ios14.0-macabi"; |
064997fb | 6 | |
487cf647 FG |
7 | let arch = Arch::Arm64_macabi; |
8 | let mut base = opts("ios", arch); | |
2b03887a | 9 | base.add_pre_link_args(LinkerFlavor::Darwin(Cc::Yes, Lld::No), &["-target", llvm_target]); |
781aab86 | 10 | base.supported_sanitizers = SanitizerSet::ADDRESS | SanitizerSet::LEAK | SanitizerSet::THREAD; |
064997fb | 11 | |
fc512014 | 12 | Target { |
064997fb | 13 | llvm_target: llvm_target.into(), |
fc512014 | 14 | pointer_width: 64, |
5e7ed085 | 15 | data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".into(), |
487cf647 | 16 | arch: arch.target_arch(), |
fc512014 | 17 | options: TargetOptions { |
5e7ed085 | 18 | features: "+neon,+fp-armv8,+apple-a12".into(), |
fc512014 | 19 | max_atomic_width: Some(128), |
fc512014 | 20 | forces_embed_bitcode: true, |
136023e0 | 21 | frame_pointer: FramePointer::NonLeaf, |
fc512014 XL |
22 | // Taken from a clang build on Xcode 11.4.1. |
23 | // These arguments are not actually invoked - they just have | |
24 | // to look right to pass App Store validation. | |
25 | bitcode_llvm_cmdline: "-triple\0\ | |
9ffffee4 | 26 | arm64-apple-ios-macabi\0\ |
fc512014 XL |
27 | -emit-obj\0\ |
28 | -disable-llvm-passes\0\ | |
fc512014 | 29 | -Os\0" |
5e7ed085 | 30 | .into(), |
064997fb | 31 | ..base |
fc512014 XL |
32 | }, |
33 | } | |
34 | } |