]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/x86_64_unknown_hermit.rs
New upstream version 1.52.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / x86_64_unknown_hermit.rs
CommitLineData
5869c6ff 1use crate::spec::{StackProbeType, Target};
b7449926 2
29967ef6 3pub fn target() -> Target {
b7449926
XL
4 let mut base = super::hermit_base::opts();
5 base.cpu = "x86-64".to_string();
b7449926 6 base.max_atomic_width = Some(64);
e74abb32 7 base.features = "+rdrnd,+rdseed".to_string();
36d6ef2b
XL
8 // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
9 base.stack_probes = StackProbeType::Call;
b7449926 10
29967ef6 11 Target {
b7449926 12 llvm_target: "x86_64-unknown-hermit".to_string(),
29967ef6 13 pointer_width: 64,
dfeec247
XL
14 data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15 .to_string(),
b7449926 16 arch: "x86_64".to_string(),
b7449926 17 options: base,
29967ef6 18 }
b7449926 19}