Add arm64e-apple-tvos target
This commit is contained in:
parent
2b11f265b6
commit
340b38ed67
7 changed files with 72 additions and 3 deletions
|
@ -1714,8 +1714,10 @@ supported_targets! {
|
|||
("x86_64-apple-ios-macabi", x86_64_apple_ios_macabi),
|
||||
("aarch64-apple-ios-macabi", aarch64_apple_ios_macabi),
|
||||
("aarch64-apple-ios-sim", aarch64_apple_ios_sim),
|
||||
|
||||
("aarch64-apple-tvos", aarch64_apple_tvos),
|
||||
("aarch64-apple-tvos-sim", aarch64_apple_tvos_sim),
|
||||
("arm64e-apple-tvos", arm64e_apple_tvos),
|
||||
("x86_64-apple-tvos", x86_64_apple_tvos),
|
||||
|
||||
("armv7k-apple-watchos", armv7k_apple_watchos),
|
||||
|
|
24
compiler/rustc_target/src/spec/targets/arm64e_apple_tvos.rs
Normal file
24
compiler/rustc_target/src/spec/targets/arm64e_apple_tvos.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
use crate::spec::base::apple::{base, Arch, TargetAbi};
|
||||
use crate::spec::{FramePointer, Target, TargetOptions};
|
||||
|
||||
pub(crate) fn target() -> Target {
|
||||
let (opts, llvm_target, arch) = base("tvos", Arch::Arm64e, TargetAbi::Normal);
|
||||
Target {
|
||||
llvm_target,
|
||||
metadata: crate::spec::TargetMetadata {
|
||||
description: Some("ARM64e Apple tvOS".into()),
|
||||
tier: Some(3),
|
||||
host_tools: Some(false),
|
||||
std: Some(true),
|
||||
},
|
||||
pointer_width: 64,
|
||||
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),
|
||||
arch,
|
||||
options: TargetOptions {
|
||||
features: "+neon,+fp-armv8,+apple-a12,+v8.3a,+pauth".into(),
|
||||
max_atomic_width: Some(128),
|
||||
frame_pointer: FramePointer::NonLeaf,
|
||||
..opts
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue