rustc_target/spec/targets/
armv7_unknown_linux_uclibceabi.rs

1use crate::spec::{FloatAbi, Target, TargetOptions, base};
2
3// This target is for uclibc Linux on ARMv7 without NEON,
4// thumb-mode or hardfloat.
5
6pub(crate) fn target() -> Target {
7    let base = base::linux_uclibc::opts();
8    Target {
9        llvm_target: "armv7-unknown-linux-gnueabi".into(),
10        metadata: crate::spec::TargetMetadata {
11            description: Some("Armv7-A Linux with uClibc, softfloat".into()),
12            tier: Some(3),
13            host_tools: Some(true),
14            std: Some(true),
15        },
16        pointer_width: 32,
17        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
18        arch: "arm".into(),
19
20        options: TargetOptions {
21            abi: "eabi".into(),
22            llvm_floatabi: Some(FloatAbi::Soft),
23            features: "+v7,+thumb2,+soft-float,-neon".into(),
24            cpu: "generic".into(),
25            max_atomic_width: Some(64),
26            mcount: "_mcount".into(),
27            ..base
28        },
29    }
30}