rustc_target/spec/targets/
armv7_unknown_linux_gnueabihf.rs

1use crate::spec::{FloatAbi, Target, TargetOptions, base};
2
3// This target is for glibc Linux on ARMv7 without NEON or
4// thumb-mode. See the thumbv7neon variant for enabling both.
5
6pub(crate) fn target() -> Target {
7    Target {
8        llvm_target: "armv7-unknown-linux-gnueabihf".into(),
9        metadata: crate::spec::TargetMetadata {
10            description: Some("Armv7-A Linux, hardfloat (kernel 3.2, glibc 2.17)".into()),
11            tier: Some(2),
12            host_tools: Some(true),
13            std: Some(true),
14        },
15        pointer_width: 32,
16        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
17        arch: "arm".into(),
18        options: TargetOptions {
19            abi: "eabihf".into(),
20            llvm_floatabi: Some(FloatAbi::Hard),
21            // Info about features at https://wiki.debian.org/ArmHardFloatPort
22            features: "+v7,+vfp3,-d32,+thumb2,-neon".into(),
23            max_atomic_width: Some(64),
24            mcount: "\u{1}__gnu_mcount_nc".into(),
25            ..base::linux_gnu::opts()
26        },
27    }
28}