]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/armv7_unknown_linux_musleabihf.rs
Auto merge of #77618 - fusion-engineering-forks:windows-parker, r=Amanieu
[rust.git] / compiler / rustc_target / src / spec / armv7_unknown_linux_musleabihf.rs
1 use crate::spec::{Target, TargetOptions};
2
3 // This target is for musl Linux on ARMv7 without thumb-mode or NEON.
4
5 pub fn target() -> Target {
6     let base = super::linux_musl_base::opts();
7     Target {
8         // It's important we use "gnueabihf" and not "musleabihf" here. LLVM
9         // uses it to determine the calling convention and float ABI, and LLVM
10         // doesn't support the "musleabihf" value.
11         llvm_target: "armv7-unknown-linux-gnueabihf".to_string(),
12         pointer_width: 32,
13         data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
14         arch: "arm".to_string(),
15
16         // Most of these settings are copied from the armv7_unknown_linux_gnueabihf
17         // target.
18         options: TargetOptions {
19             features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
20             cpu: "generic".to_string(),
21             max_atomic_width: Some(64),
22             unsupported_abis: super::arm_base::unsupported_abis(),
23             mcount: "\u{1}mcount".to_string(),
24             ..base
25         },
26     }
27 }