rustc_target/spec/targets/
mipsel_unknown_linux_musl.rs
1use crate::spec::{Target, TargetOptions, base};
2
3pub(crate) fn target() -> Target {
4 let mut base = base::linux_musl::opts();
5 base.cpu = "mips32r2".into();
6 base.features = "+mips32r2,+soft-float".into();
7 base.max_atomic_width = Some(32);
8 Target {
9 llvm_target: "mipsel-unknown-linux-musl".into(),
10 metadata: crate::spec::TargetMetadata {
11 description: Some("MIPS (little endian) Linux with musl 1.2.3".into()),
12 tier: Some(3),
13 host_tools: Some(false),
14 std: Some(true),
15 },
16 pointer_width: 32,
17 data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(),
18 arch: "mips".into(),
19 options: TargetOptions { mcount: "_mcount".into(), ..base },
20 }
21}