1 use crate::spec::{Target, TargetOptions};
3 // This target is for musl Linux on ARMv7 without thumb-mode or NEON.
5 pub fn target() -> 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".to_string(),
12 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
13 arch: "arm".to_string(),
15 // Most of these settings are copied from the armv7_unknown_linux_gnueabihf
17 options: TargetOptions {
18 abi: "eabihf".to_string(),
19 features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
20 max_atomic_width: Some(64),
21 mcount: "\u{1}mcount".to_string(),
22 ..super::linux_musl_base::opts()