]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_target/src/spec/armv7_unknown_linux_gnueabihf.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / armv7_unknown_linux_gnueabihf.rs
1 use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
2
3 // This target is for glibc Linux on ARMv7 without NEON or
4 // thumb-mode. See the thumbv7neon variant for enabling both.
5
6 pub fn target() -> TargetResult {
7 let base = super::linux_base::opts();
8 Ok(Target {
9 llvm_target: "armv7-unknown-linux-gnueabihf".to_string(),
10 target_endian: "little".to_string(),
11 target_pointer_width: "32".to_string(),
12 target_c_int_width: "32".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(),
15 target_os: "linux".to_string(),
16 target_env: "gnu".to_string(),
17 target_vendor: "unknown".to_string(),
18 linker_flavor: LinkerFlavor::Gcc,
19
20 options: TargetOptions {
21 // Info about features at https://wiki.debian.org/ArmHardFloatPort
22 features: "+v7,+vfp3,-d32,+thumb2,-neon".to_string(),
23 cpu: "generic".to_string(),
24 max_atomic_width: Some(64),
25 unsupported_abis: super::arm_base::unsupported_abis(),
26 target_mcount: "\u{1}__gnu_mcount_nc".to_string(),
27 ..base
28 },
29 })
30 }