]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/armv7_unknown_linux_musleabi.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / armv7_unknown_linux_musleabi.rs
CommitLineData
29967ef6 1use crate::spec::{Target, TargetOptions};
416331ca
XL
2
3// This target is for musl Linux on ARMv7 without thumb-mode, NEON or
4// hardfloat.
5
29967ef6 6pub fn target() -> Target {
416331ca
XL
7 // Most of these settings are copied from the armv7_unknown_linux_gnueabi
8 // target.
29967ef6 9 Target {
416331ca
XL
10 // It's important we use "gnueabi" and not "musleabi" here. LLVM uses it
11 // to determine the calling convention and float ABI, and it doesn't
12 // support the "musleabi" value.
ee023bcb 13 llvm_target: "armv7-unknown-linux-gnueabi".into(),
29967ef6 14 pointer_width: 32,
ee023bcb
FG
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(),
416331ca
XL
17
18 options: TargetOptions {
ee023bcb
FG
19 abi: "eabi".into(),
20 features: "+v7,+thumb2,+soft-float,-neon".into(),
416331ca 21 max_atomic_width: Some(64),
ee023bcb 22 mcount: "\u{1}mcount".into(),
136023e0 23 ..super::linux_musl_base::opts()
dfeec247 24 },
29967ef6 25 }
416331ca 26}