2022-08-06 21:08:46 +03:00
|
|
|
use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target};
|
2016-09-24 23:38:56 -05:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
2016-09-25 16:55:40 -05:00
|
|
|
let mut base = super::haiku_base::opts();
|
2022-03-22 11:43:05 +01:00
|
|
|
base.cpu = "x86-64".into();
|
2016-10-03 23:45:40 -05:00
|
|
|
base.max_atomic_width = Some(64);
|
2022-08-06 21:08:46 +03:00
|
|
|
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
|
2022-09-29 19:13:30 -07:00
|
|
|
base.stack_probes = StackProbeType::X86;
|
2018-06-09 14:08:45 +00:00
|
|
|
// This option is required to build executables on Haiku x86_64
|
|
|
|
|
base.position_independent_executables = true;
|
2016-09-25 16:55:40 -05:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
Target {
|
2022-03-22 11:43:05 +01:00
|
|
|
llvm_target: "x86_64-unknown-haiku".into(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 64,
|
2020-01-07 21:26:52 +01:00
|
|
|
data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
2022-03-22 11:43:05 +01:00
|
|
|
.into(),
|
|
|
|
|
arch: "x86_64".into(),
|
2016-09-25 16:55:40 -05:00
|
|
|
options: base,
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2016-09-24 23:38:56 -05:00
|
|
|
}
|