]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/armv5te_unknown_linux_musleabi.rs
Auto merge of #2680 - RalfJung:rustup, r=RalfJung
[rust.git] / compiler / rustc_target / src / spec / armv5te_unknown_linux_musleabi.rs
1 use crate::spec::{Target, TargetOptions};
2
3 pub fn target() -> Target {
4     Target {
5         // FIXME: this comment below does not seem applicable?
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.
9         llvm_target: "armv5te-unknown-linux-gnueabi".into(),
10         pointer_width: 32,
11         data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
12         arch: "arm".into(),
13         options: TargetOptions {
14             abi: "eabi".into(),
15             features: "+soft-float,+strict-align".into(),
16             // Atomic operations provided by compiler-builtins
17             max_atomic_width: Some(32),
18             mcount: "\u{1}mcount".into(),
19             has_thumb_interworking: true,
20             ..super::linux_musl_base::opts()
21         },
22     }
23 }