]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/armv7_unknown_linux_uclibceabihf.rs
Issue error when `-C link-self-contained` option is used on unsupported platforms
[rust.git] / compiler / rustc_target / src / spec / armv7_unknown_linux_uclibceabihf.rs
1 use crate::spec::{Target, TargetOptions};
2
3 // This target is for uclibc Linux on ARMv7 without NEON or
4 // thumb-mode. See the thumbv7neon variant for enabling both.
5
6 pub fn target() -> Target {
7     let base = super::linux_uclibc_base::opts();
8     Target {
9         llvm_target: "armv7-unknown-linux-gnueabihf".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
14         options: TargetOptions {
15             // Info about features at https://wiki.debian.org/ArmHardFloatPort
16             features: "+v7,+vfp3,-d32,+thumb2,-neon".into(),
17             cpu: "generic".into(),
18             max_atomic_width: Some(64),
19             mcount: "_mcount".into(),
20             abi: "eabihf".into(),
21             ..base
22         },
23     }
24 }