rustc_target/spec/targets/
armv7_unknown_linux_musleabihf.rs

1use crate::spec::{FloatAbi, Target, TargetOptions, base};
2
3// This target is for musl Linux on ARMv7 without thumb-mode or NEON.
4
5pub(crate) fn target() -> Target {
6    Target {
7        llvm_target: "armv7-unknown-linux-musleabihf".into(),
8        metadata: crate::spec::TargetMetadata {
9            description: Some("Armv7-A Linux with musl 1.2.3, hardfloat".into()),
10            tier: Some(2),
11            host_tools: Some(false),
12            std: Some(true),
13        },
14        pointer_width: 32,
15        data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
16        arch: "arm".into(),
17
18        // Most of these settings are copied from the armv7_unknown_linux_gnueabihf
19        // target.
20        options: TargetOptions {
21            abi: "eabihf".into(),
22            llvm_floatabi: Some(FloatAbi::Hard),
23            features: "+v7,+vfp3,-d32,+thumb2,-neon".into(),
24            max_atomic_width: Some(64),
25            mcount: "\u{1}mcount".into(),
26            // FIXME(compiler-team#422): musl targets should be dynamically linked by default.
27            crt_static_default: true,
28            ..base::linux_musl::opts()
29        },
30    }
31}