1 use crate::spec::{Target, TargetOptions};
3 // This target is for glibc Linux on ARMv7 without NEON or
4 // thumb-mode. See the thumbv7neon variant for enabling both.
6 pub fn target() -> Target {
7 let base = super::linux_gnu_base::opts();
9 llvm_target: "armv7-unknown-linux-gnueabihf".to_string(),
11 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
12 arch: "arm".to_string(),
14 options: TargetOptions {
15 // Info about features at https://wiki.debian.org/ArmHardFloatPort
16 features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
17 cpu: "generic".to_string(),
18 max_atomic_width: Some(64),
19 unsupported_abis: super::arm_base::unsupported_abis(),
20 mcount: "\u{1}__gnu_mcount_nc".to_string(),