rustc_target/spec/targets/
x86_64_unknown_linux_none.rs

1use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, StackProbeType, Target, base};
2
3pub(crate) fn target() -> Target {
4    let mut base = base::linux::opts();
5    base.cpu = "x86-64".into();
6    base.max_atomic_width = Some(64);
7    base.stack_probes = StackProbeType::Inline;
8    base.linker_flavor = LinkerFlavor::Gnu(Cc::No, Lld::Yes);
9    base.linker = Some("rust-lld".into());
10    base.panic_strategy = PanicStrategy::Abort;
11
12    Target {
13        llvm_target: "x86_64-unknown-linux-none".into(),
14        metadata: crate::spec::TargetMetadata {
15            description: None,
16            tier: None,
17            host_tools: None,
18            std: Some(false),
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}