]>
Commit | Line | Data |
---|---|---|
532ac7d7 | 1 | use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult}; |
0531ce1d XL |
2 | |
3 | pub fn target() -> TargetResult { | |
4 | let mut base = super::linux_base::opts(); | |
5 | base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-mspe".to_string()); | |
6 | base.max_atomic_width = Some(32); | |
7 | ||
0531ce1d XL |
8 | Ok(Target { |
9 | llvm_target: "powerpc-unknown-linux-gnuspe".to_string(), | |
10 | target_endian: "big".to_string(), | |
11 | target_pointer_width: "32".to_string(), | |
12 | target_c_int_width: "32".to_string(), | |
13 | data_layout: "E-m:e-p:32:32-i64:64-n32".to_string(), | |
14 | arch: "powerpc".to_string(), | |
15 | target_os: "linux".to_string(), | |
16 | target_env: "gnu".to_string(), | |
17 | target_vendor: "unknown".to_string(), | |
18 | linker_flavor: LinkerFlavor::Gcc, | |
dfeec247 | 19 | options: TargetOptions { target_mcount: "_mcount".to_string(), ..base }, |
0531ce1d XL |
20 | }) |
21 | } |