rustc_target/spec/targets/
x86_64_unknown_haiku.rs
1use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, base};
2
3pub(crate) fn target() -> Target {
4 let mut base = base::haiku::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.position_independent_executables = true;
12
13 Target {
14 llvm_target: "x86_64-unknown-haiku".into(),
15 metadata: crate::spec::TargetMetadata {
16 description: Some("64-bit Haiku".into()),
17 tier: Some(3),
18 host_tools: Some(true),
19 std: Some(true),
20 },
21 pointer_width: 64,
22 data_layout:
23 "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128".into(),
24 arch: "x86_64".into(),
25 options: base,
26 }
27}