]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | use crate::abi::Endian; |
29967ef6 | 2 | use crate::spec::{LinkerFlavor, Target, TargetOptions}; |
416331ca | 3 | |
29967ef6 | 4 | pub fn target() -> Target { |
416331ca | 5 | let mut base = super::vxworks_base::opts(); |
5e7ed085 FG |
6 | base.cpu = "ppc64".into(); |
7 | base.pre_link_args.entry(LinkerFlavor::Gcc).or_default().push("-m64".into()); | |
416331ca XL |
8 | base.max_atomic_width = Some(64); |
9 | ||
29967ef6 | 10 | Target { |
5e7ed085 | 11 | llvm_target: "powerpc64-unknown-linux-gnu".into(), |
29967ef6 | 12 | pointer_width: 64, |
5e7ed085 FG |
13 | data_layout: "E-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512".into(), |
14 | arch: "powerpc64".into(), | |
5869c6ff | 15 | options: TargetOptions { endian: Endian::Big, ..base }, |
29967ef6 | 16 | } |
416331ca | 17 | } |