1 use crate::spec::{LinkerFlavor, Target};
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);
12 llvm_target: "sparcv9-sun-solaris".to_string(),
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
19 arch: "sparc64".to_string(),