]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/armv7k_apple_watchos.rs
Auto merge of #2680 - RalfJung:rustup, r=RalfJung
[rust.git] / compiler / rustc_target / src / spec / armv7k_apple_watchos.rs
1 use super::apple_base::{opts, Arch};
2 use crate::spec::{Target, TargetOptions};
3
4 pub fn target() -> Target {
5     let arch = Arch::Armv7k;
6     Target {
7         llvm_target: "armv7k-apple-watchos".into(),
8         pointer_width: 32,
9         data_layout: "e-m:o-p:32:32-Fi8-i64:64-a:0:32-n32-S128".into(),
10         arch: arch.target_arch(),
11         options: TargetOptions {
12             features: "+v7,+vfp4,+neon".into(),
13             max_atomic_width: Some(64),
14             forces_embed_bitcode: true,
15             dynamic_linking: false,
16             position_independent_executables: true,
17             // These arguments are not actually invoked - they just have
18             // to look right to pass App Store validation.
19             bitcode_llvm_cmdline: "-triple\0\
20                 armv7k-apple-watchos3.0.0\0\
21                 -emit-obj\0\
22                 -disable-llvm-passes\0\
23                 -target-abi\0\
24                 darwinpcs\0\
25                 -Os\0"
26                 .into(),
27             ..opts("watchos", arch)
28         },
29     }
30 }