]>
Commit | Line | Data |
---|---|---|
9fa01778 | 1 | use crate::spec::{LinkerFlavor, Target, TargetResult}; |
85aaf69f | 2 | |
5bcae85e | 3 | pub fn target() -> TargetResult { |
85aaf69f | 4 | let mut base = super::linux_base::opts(); |
cc61c64b | 5 | base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string()); |
c30ab7b3 SL |
6 | base.max_atomic_width = Some(32); |
7 | ||
5bcae85e | 8 | Ok(Target { |
85aaf69f SL |
9 | llvm_target: "powerpc-unknown-linux-gnu".to_string(), |
10 | target_endian: "big".to_string(), | |
11 | target_pointer_width: "32".to_string(), | |
ea8adc8c | 12 | target_c_int_width: "32".to_string(), |
54a0048b | 13 | data_layout: "E-m:e-p:32:32-i64:64-n32".to_string(), |
85aaf69f SL |
14 | arch: "powerpc".to_string(), |
15 | target_os: "linux".to_string(), | |
d9579d0f | 16 | target_env: "gnu".to_string(), |
b039eaaf | 17 | target_vendor: "unknown".to_string(), |
cc61c64b | 18 | linker_flavor: LinkerFlavor::Gcc, |
85aaf69f | 19 | options: base, |
5bcae85e | 20 | }) |
85aaf69f | 21 | } |