1 use crate::abi::Endian;
2 use crate::spec::{LinkerFlavor, Target};
4 pub fn target() -> Target {
5 let mut base = super::solaris_base::opts();
6 base.endian = Endian::Big;
7 base.add_pre_link_args(LinkerFlavor::Gcc, &["-m64"]);
8 // llvm calls this "v9"
9 base.cpu = "v9".into();
10 base.vendor = "sun".into();
11 base.max_atomic_width = Some(64);
14 llvm_target: "sparcv9-sun-solaris".into(),
16 data_layout: "E-m:e-i64:64-n32:64-S128".into(),
17 // Use "sparc64" instead of "sparcv9" here, since the former is already
18 // used widely in the source base. If we ever needed ABI
19 // differentiation from the sparc64, we could, but that would probably
21 arch: "sparc64".into(),