]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/x86_64_unknown_hermit_kernel.rs
Auto merge of #77618 - fusion-engineering-forks:windows-parker, r=Amanieu
[rust.git] / compiler / rustc_target / src / spec / x86_64_unknown_hermit_kernel.rs
1 use crate::spec::Target;
2
3 pub fn target() -> Target {
4     let mut base = super::hermit_kernel_base::opts();
5     base.cpu = "x86-64".to_string();
6     base.max_atomic_width = Some(64);
7     base.features =
8         "-mmx,-sse,-sse2,-sse3,-ssse3,-sse4.1,-sse4.2,-3dnow,-3dnowa,-avx,-avx2,+soft-float"
9             .to_string();
10     base.stack_probes = true;
11
12     Target {
13         llvm_target: "x86_64-unknown-hermit".to_string(),
14         pointer_width: 64,
15         data_layout: "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
16             .to_string(),
17         arch: "x86_64".to_string(),
18         options: base,
19     }
20 }