]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/arm64_32_apple_watchos.rs
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext...
[rust.git] / compiler / rustc_target / src / spec / arm64_32_apple_watchos.rs
1 use super::apple_sdk_base::{opts, Arch};
2 use crate::spec::{Target, TargetOptions};
3
4 pub fn target() -> Target {
5     let base = opts("watchos", Arch::Arm64_32);
6     Target {
7         llvm_target: "arm64_32-apple-watchos".into(),
8         pointer_width: 32,
9         data_layout: "e-m:o-p:32:32-i64:64-i128:128-n32:64-S128".into(),
10         arch: "aarch64".into(),
11         options: TargetOptions {
12             features: "+neon,+fp-armv8,+apple-a7".into(),
13             max_atomic_width: Some(128),
14             forces_embed_bitcode: true,
15             // These arguments are not actually invoked - they just have
16             // to look right to pass App Store validation.
17             bitcode_llvm_cmdline: "-triple\0\
18                 arm64_32-apple-watchos5.0.0\0\
19                 -emit-obj\0\
20                 -disable-llvm-passes\0\
21                 -target-abi\0\
22                 darwinpcs\0\
23                 -Os\0"
24                 .into(),
25             ..base
26         },
27     }
28 }