]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/aarch64_apple_tvos.rs
Issue error when `-C link-self-contained` option is used on unsupported platforms
[rust.git] / compiler / rustc_target / src / spec / aarch64_apple_tvos.rs
1 use super::apple_base::{opts, Arch};
2 use crate::spec::{FramePointer, Target, TargetOptions};
3
4 pub fn target() -> Target {
5     let arch = Arch::Arm64;
6     Target {
7         llvm_target: "arm64-apple-tvos".into(),
8         pointer_width: 64,
9         data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".into(),
10         arch: arch.target_arch(),
11         options: TargetOptions {
12             features: "+neon,+fp-armv8,+apple-a7".into(),
13             max_atomic_width: Some(128),
14             forces_embed_bitcode: true,
15             frame_pointer: FramePointer::NonLeaf,
16             ..opts("tvos", arch)
17         },
18     }
19 }