]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/armv7_unknown_linux_musleabihf.rs
Auto merge of #97800 - pnkfelix:issue-97463-fix-aarch64-call-abi-does-not-zeroext...
[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     Target {
7         // It's important we use "gnueabihf" and not "musleabihf" here. LLVM
8         // uses it to determine the calling convention and float ABI, and LLVM
9         // doesn't support the "musleabihf" value.
10         llvm_target: "armv7-unknown-linux-gnueabihf".into(),
11         pointer_width: 32,
12         data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
13         arch: "arm".into(),
14
15         // Most of these settings are copied from the armv7_unknown_linux_gnueabihf
16         // target.
17         options: TargetOptions {
18             abi: "eabihf".into(),
19             features: "+v7,+vfp3,-d32,+thumb2,-neon".into(),
20             max_atomic_width: Some(64),
21             mcount: "\u{1}mcount".into(),
22             ..super::linux_musl_base::opts()
23         },
24     }
25 }