2021-01-05 01:13:27 +00:00
|
|
|
use crate::abi::Endian;
|
2020-10-05 15:37:55 +03:00
|
|
|
use crate::spec::{LinkerFlavor, Target, TargetOptions};
|
2018-02-23 22:18:40 +01:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
2020-11-10 23:32:58 +03:00
|
|
|
let mut base = super::linux_gnu_base::opts();
|
2022-03-22 11:43:05 +01:00
|
|
|
base.pre_link_args.entry(LinkerFlavor::Gcc).or_default().push("-mspe".into());
|
2018-02-23 22:18:40 +01:00
|
|
|
base.max_atomic_width = Some(32);
|
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
Target {
|
2022-03-22 11:43:05 +01:00
|
|
|
llvm_target: "powerpc-unknown-linux-gnuspe".into(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 32,
|
2022-03-22 11:43:05 +01:00
|
|
|
data_layout: "E-m:e-p:32:32-i64:64-n32".into(),
|
|
|
|
arch: "powerpc".into(),
|
2021-07-06 22:00:53 -07:00
|
|
|
options: TargetOptions {
|
2022-03-22 11:43:05 +01:00
|
|
|
abi: "spe".into(),
|
2021-07-06 22:00:53 -07:00
|
|
|
endian: Endian::Big,
|
2022-03-22 11:43:05 +01:00
|
|
|
mcount: "_mcount".into(),
|
2021-07-06 22:00:53 -07:00
|
|
|
..base
|
|
|
|
},
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2018-02-23 22:18:40 +01:00
|
|
|
}
|