rustc_target/spec/targets/
powerpc64_wrs_vxworks.rs

1use rustc_abi::Endian;
2
3use crate::spec::{
4    Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetMetadata, TargetOptions, base,
5};
6
7pub(crate) fn target() -> Target {
8    let mut base = base::vxworks::opts();
9    base.cpu = "ppc64".into();
10    base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
11    base.max_atomic_width = Some(64);
12    base.stack_probes = StackProbeType::Inline;
13
14    Target {
15        llvm_target: "powerpc64-unknown-linux-gnu".into(),
16        metadata: TargetMetadata {
17            description: None,
18            tier: Some(3),
19            host_tools: Some(false),
20            std: Some(true),
21        },
22        pointer_width: 64,
23        data_layout: "E-m:e-Fi64-i64:64-i128:128-n32:64-S128-v256:256:256-v512:512:512".into(),
24        arch: "powerpc64".into(),
25        options: TargetOptions { endian: Endian::Big, ..base },
26    }
27}