rustc_target/spec/targets/
x86_64_wrs_vxworks.rs
1use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, base};
2
3pub(crate) fn target() -> Target {
4 let mut base = base::vxworks::opts();
5 base.cpu = "x86-64".into();
6 base.plt_by_default = false;
7 base.max_atomic_width = Some(64);
8 base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
9 base.stack_probes = StackProbeType::Inline;
10 base.disable_redzone = true;
11
12 Target {
13 llvm_target: "x86_64-unknown-linux-gnu".into(),
14 metadata: crate::spec::TargetMetadata {
15 description: None,
16 tier: Some(3),
17 host_tools: Some(false),
18 std: Some(true),
19 },
20 pointer_width: 64,
21 data_layout:
22 "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128".into(),
23 arch: "x86_64".into(),
24 options: base,
25 }
26}