]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/arm_unknown_linux_musleabihf.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / arm_unknown_linux_musleabihf.rs
CommitLineData
29967ef6 1use crate::spec::{Target, TargetOptions};
5bcae85e 2
29967ef6 3pub fn target() -> Target {
29967ef6 4 Target {
5bcae85e
SL
5 // It's important we use "gnueabihf" and not "musleabihf" here. LLVM
6 // uses it to determine the calling convention and float ABI, and it
7 // doesn't support the "musleabihf" value.
ee023bcb 8 llvm_target: "arm-unknown-linux-gnueabihf".into(),
29967ef6 9 pointer_width: 32,
ee023bcb
FG
10 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
11 arch: "arm".into(),
c30ab7b3 12 options: TargetOptions {
ee023bcb 13 abi: "eabihf".into(),
136023e0
XL
14 // Most of these settings are copied from the arm_unknown_linux_gnueabihf
15 // target.
ee023bcb 16 features: "+strict-align,+v6,+vfp2,-d32".into(),
136023e0 17 max_atomic_width: Some(64),
ee023bcb 18 mcount: "\u{1}mcount".into(),
136023e0 19 ..super::linux_musl_base::opts()
c30ab7b3 20 },
29967ef6 21 }
5bcae85e 22}