1 use super::apple_base::{opts, watchos_sim_llvm_target, Arch};
2 use crate::spec::{FramePointer, Target, TargetOptions};
4 pub fn target() -> Target {
5 let arch = Arch::Arm64_sim;
7 // Clang automatically chooses a more specific target based on
8 // WATCHOS_DEPLOYMENT_TARGET.
9 // This is required for the simulator target to pick the right
10 // MACH-O commands, so we do too.
11 llvm_target: watchos_sim_llvm_target(arch).into(),
13 data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".into(),
14 arch: arch.target_arch(),
15 options: TargetOptions {
16 features: "+neon,+fp-armv8,+apple-a7".into(),
17 max_atomic_width: Some(128),
18 forces_embed_bitcode: true,
19 frame_pointer: FramePointer::NonLeaf,
20 // Taken from a clang build on Xcode 11.4.1.
21 // These arguments are not actually invoked - they just have
22 // to look right to pass App Store validation.
23 bitcode_llvm_cmdline: "-triple\0\
24 arm64-apple-watchos5.0-simulator\0\
26 -disable-llvm-passes\0\
31 ..opts("watchos", arch)