]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | // Targets the Little-endian Cortex-R4F/R5F processor (ARMv7-R) |
2 | ||
2b03887a | 3 | use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions}; |
b7449926 | 4 | |
29967ef6 XL |
5 | pub fn target() -> Target { |
6 | Target { | |
5e7ed085 | 7 | llvm_target: "armv7r-unknown-none-eabihf".into(), |
29967ef6 | 8 | pointer_width: 32, |
5e7ed085 FG |
9 | data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(), |
10 | arch: "arm".into(), | |
b7449926 XL |
11 | |
12 | options: TargetOptions { | |
5e7ed085 | 13 | abi: "eabihf".into(), |
2b03887a | 14 | linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes), |
5e7ed085 | 15 | linker: Some("rust-lld".into()), |
f9f354fc | 16 | relocation_model: RelocModel::Static, |
b7449926 | 17 | panic_strategy: PanicStrategy::Abort, |
5e7ed085 | 18 | features: "+vfp3,-d32,-fp16".into(), |
49aad941 | 19 | max_atomic_width: Some(64), |
b7449926 | 20 | emit_debug_gdb_scripts: false, |
94222f64 | 21 | // GCC and Clang default to 8 for arm-none here |
9ffffee4 | 22 | c_enum_min_bits: Some(8), |
dfeec247 | 23 | ..Default::default() |
b7449926 | 24 | }, |
29967ef6 | 25 | } |
b7449926 | 26 | } |