]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/spec/sparc64_unknown_linux_gnu.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / sparc64_unknown_linux_gnu.rs
1 use crate::spec::{LinkerFlavor, Target, TargetResult};
2
3 pub fn target() -> TargetResult {
4 let mut base = super::linux_base::opts();
5 base.cpu = "v9".to_string();
6 base.max_atomic_width = Some(64);
7
8 Ok(Target {
9 llvm_target: "sparc64-unknown-linux-gnu".to_string(),
10 target_endian: "big".to_string(),
11 target_pointer_width: "64".to_string(),
12 target_c_int_width: "32".to_string(),
13 data_layout: "E-m:e-i64:64-n32:64-S128".to_string(),
14 arch: "sparc64".to_string(),
15 target_os: "linux".to_string(),
16 target_env: "gnu".to_string(),
17 target_vendor: "unknown".to_string(),
18 linker_flavor: LinkerFlavor::Gcc,
19 options: base,
20 })
21 }