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 {
6 let base = super::linux_musl_base::opts();
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(),
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(),
16 // Most of these settings are copied from the armv7_unknown_linux_gnueabihf
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(),