2021-01-09 15:54:20 +01:00
|
|
|
use crate::spec::{StackProbeType, Target};
|
2016-10-18 22:43:18 +02:00
|
|
|
|
2020-10-05 14:37:55 +02:00
|
|
|
pub fn target() -> Target {
|
2016-10-18 22:43:18 +02:00
|
|
|
let mut base = super::fuchsia_base::opts();
|
|
|
|
base.cpu = "x86-64".to_string();
|
|
|
|
base.max_atomic_width = Some(64);
|
2021-04-29 21:56:12 +02:00
|
|
|
// don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
|
|
|
|
base.stack_probes = StackProbeType::Call;
|
2016-10-18 22:43:18 +02:00
|
|
|
|
2020-10-05 14:37:55 +02:00
|
|
|
Target {
|
2018-07-27 02:57:20 +02:00
|
|
|
llvm_target: "x86_64-fuchsia".to_string(),
|
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"
|
|
|
|
.to_string(),
|
2016-10-18 22:43:18 +02:00
|
|
|
arch: "x86_64".to_string(),
|
|
|
|
options: base,
|
2020-10-05 14:37:55 +02:00
|
|
|
}
|
2016-10-18 22:43:18 +02:00
|
|
|
}
|