]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/x86_64_fuchsia.rs
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / compiler / rustc_target / src / spec / x86_64_fuchsia.rs
1 use crate::spec::{SanitizerSet, StackProbeType, Target};
2
3 pub fn target() -> Target {
4     let mut base = super::fuchsia_base::opts();
5     base.cpu = "x86-64".to_string();
6     base.max_atomic_width = Some(64);
7     // don't use probe-stack=inline-asm until rust#83139 and rust#84667 are resolved
8     base.stack_probes = StackProbeType::Call;
9     base.supported_sanitizers = SanitizerSet::ADDRESS | SanitizerSet::CFI;
10
11     Target {
12         llvm_target: "x86_64-fuchsia".to_string(),
13         pointer_width: 64,
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(),
16         arch: "x86_64".to_string(),
17         options: base,
18     }
19 }