]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/aarch64_unknown_nto_qnx_710.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / aarch64_unknown_nto_qnx_710.rs
CommitLineData
487cf647
FG
1use super::nto_qnx_base;
2use crate::spec::{Cc, LinkerFlavor, Lld, Target, TargetOptions};
3
4pub fn target() -> Target {
5 Target {
6 llvm_target: "aarch64-unknown-unknown".into(),
7 pointer_width: 64,
8 // from: https://llvm.org/docs/LangRef.html#data-layout
9 // e = little endian
10 // m:e = ELF mangling: Private symbols get a .L prefix
11 // i8:8:32 = 8-bit-integer, minimum_alignment=8, preferred_alignment=32
12 // i16:16:32 = 16-bit-integer, minimum_alignment=16, preferred_alignment=32
13 // i64:64 = 64-bit-integer, minimum_alignment=64, preferred_alignment=64
14 // i128:128 = 128-bit-integer, minimum_alignment=128, preferred_alignment=128
15 // n32:64 = 32 and 64 are native integer widths; Elements of this set are considered to support most general arithmetic operations efficiently.
16 // S128 = 128 bits are the natural alignment of the stack in bits.
17 data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".into(),
18 arch: "aarch64".into(),
19 options: TargetOptions {
9ffffee4 20 features: "+v8a".into(),
487cf647
FG
21 max_atomic_width: Some(128),
22 pre_link_args: TargetOptions::link_args(
23 LinkerFlavor::Gnu(Cc::Yes, Lld::No),
24 &["-Vgcc_ntoaarch64le_cxx"],
25 ),
353b0b11 26 env: "nto71".into(),
487cf647
FG
27 ..nto_qnx_base::opts()
28 },
29 }
30}