2021-01-05 01:13:27 +00:00
|
|
|
use crate::abi::Endian;
|
2020-10-08 22:22:28 +03:00
|
|
|
use crate::spec::{Target, TargetOptions};
|
2016-08-16 17:07:55 -05:00
|
|
|
|
2020-10-05 15:37:55 +03:00
|
|
|
pub fn target() -> Target {
|
|
|
|
Target {
|
2022-03-22 11:43:05 +01:00
|
|
|
llvm_target: "mips-unknown-linux-uclibc".into(),
|
2020-10-14 18:08:12 +02:00
|
|
|
pointer_width: 32,
|
2022-03-22 11:43:05 +01:00
|
|
|
data_layout: "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(),
|
|
|
|
arch: "mips".into(),
|
2016-08-16 17:07:55 -05:00
|
|
|
options: TargetOptions {
|
2021-01-05 01:13:27 +00:00
|
|
|
endian: Endian::Big,
|
2022-03-22 11:43:05 +01:00
|
|
|
cpu: "mips32r2".into(),
|
|
|
|
features: "+mips32r2,+soft-float".into(),
|
2016-10-03 23:45:40 -05:00
|
|
|
max_atomic_width: Some(32),
|
2022-03-22 11:43:05 +01:00
|
|
|
mcount: "_mcount".into(),
|
2016-10-24 19:33:28 -07:00
|
|
|
|
2020-10-08 21:47:22 +03:00
|
|
|
..super::linux_uclibc_base::opts()
|
2016-08-16 17:07:55 -05:00
|
|
|
},
|
2020-10-05 15:37:55 +03:00
|
|
|
}
|
2016-08-16 17:07:55 -05:00
|
|
|
}
|