]> git.proxmox.com Git - rustc.git/blame - src/librustc_target/spec/armv5te_unknown_linux_musleabi.rs
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_target / spec / armv5te_unknown_linux_musleabi.rs
CommitLineData
9fa01778 1use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
476ff2be
SL
2
3pub fn target() -> TargetResult {
83c7162d 4 let base = super::linux_musl_base::opts();
476ff2be 5 Ok(Target {
83c7162d
XL
6 // It's important we use "gnueabihf" and not "musleabihf" here. LLVM
7 // uses it to determine the calling convention and float ABI, and LLVM
8 // doesn't support the "musleabihf" value.
476ff2be
SL
9 llvm_target: "armv5te-unknown-linux-gnueabi".to_string(),
10 target_endian: "little".to_string(),
11 target_pointer_width: "32".to_string(),
ea8adc8c 12 target_c_int_width: "32".to_string(),
416331ca 13 data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".to_string(),
476ff2be
SL
14 arch: "arm".to_string(),
15 target_os: "linux".to_string(),
83c7162d 16 target_env: "musl".to_string(),
476ff2be 17 target_vendor: "unknown".to_string(),
cc61c64b 18 linker_flavor: LinkerFlavor::Gcc,
476ff2be
SL
19
20 options: TargetOptions {
7cac9316 21 features: "+soft-float,+strict-align".to_string(),
ff7c6d11 22 // Atomic operations provided by compiler-builtins
ea8adc8c 23 max_atomic_width: Some(32),
f035d41b 24 unsupported_abis: super::arm_base::unsupported_abis(),
532ac7d7 25 target_mcount: "\u{1}mcount".to_string(),
dfeec247
XL
26 ..base
27 },
476ff2be
SL
28 })
29}