]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/sparcv9_sun_solaris.rs
Auto merge of #77618 - fusion-engineering-forks:windows-parker, r=Amanieu
[rust.git] / compiler / rustc_target / src / spec / sparcv9_sun_solaris.rs
1 use crate::spec::{LinkerFlavor, Target};
2
3 pub fn target() -> Target {
4     let mut base = super::solaris_base::opts();
5     base.endian = "big".to_string();
6     base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-m64".to_string()]);
7     // llvm calls this "v9"
8     base.cpu = "v9".to_string();
9     base.max_atomic_width = Some(64);
10
11     Target {
12         llvm_target: "sparcv9-sun-solaris".to_string(),
13         pointer_width: 64,
14         data_layout: "E-m:e-i64:64-n32:64-S128".to_string(),
15         // Use "sparc64" instead of "sparcv9" here, since the former is already
16         // used widely in the source base.  If we ever needed ABI
17         // differentiation from the sparc64, we could, but that would probably
18         // just be confusing.
19         arch: "sparc64".to_string(),
20         options: base,
21     }
22 }