rustc_target/spec/targets/
mipsel_unknown_netbsd.rs

1use rustc_abi::Endian;
2
3use crate::spec::{Target, TargetOptions, base};
4
5pub(crate) fn target() -> Target {
6    let mut base = base::netbsd::opts();
7    base.max_atomic_width = Some(32);
8    base.cpu = "mips32".into();
9
10    Target {
11        llvm_target: "mipsel-unknown-netbsd".into(),
12        metadata: crate::spec::TargetMetadata {
13            description: Some("32-bit MIPS (LE), requires mips32 cpu support".into()),
14            tier: Some(3),
15            host_tools: Some(true),
16            std: Some(true),
17        },
18        pointer_width: 32,
19        data_layout: "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(),
20        arch: "mips".into(),
21        options: TargetOptions {
22            features: "+soft-float".into(),
23            mcount: "__mcount".into(),
24            endian: Endian::Little,
25            ..base
26        },
27    }
28}