|
| 1 | +use crate::spec::{cvs, Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions}; |
| 2 | + |
| 3 | +pub(crate) fn target() -> Target { |
| 4 | + Target { |
| 5 | + llvm_target: "armv7-unknown-none-eabihf".into(), |
| 6 | + metadata: crate::spec::TargetMetadata { |
| 7 | + description: Some("Armv7 RTEMS (Requires RTEMS toolchain and kernel".into()), |
| 8 | + tier: Some(3), |
| 9 | + host_tools: Some(false), |
| 10 | + std: Some(true), |
| 11 | + }, |
| 12 | + pointer_width: 32, |
| 13 | + data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(), |
| 14 | + arch: "arm".into(), |
| 15 | + |
| 16 | + options: TargetOptions { |
| 17 | + os: "rtems".into(), |
| 18 | + families: cvs!["unix"], |
| 19 | + abi: "eabihf".into(), |
| 20 | + linker_flavor: LinkerFlavor::Gnu(Cc::Yes, Lld::No), |
| 21 | + linker: None, |
| 22 | + relocation_model: RelocModel::Static, |
| 23 | + panic_strategy: PanicStrategy::Abort, |
| 24 | + features: "+thumb2,+neon,+vfp3".into(), |
| 25 | + max_atomic_width: Some(64), |
| 26 | + emit_debug_gdb_scripts: false, |
| 27 | + // GCC defaults to 8 for arm-none here. |
| 28 | + c_enum_min_bits: Some(8), |
| 29 | + eh_frame_header: false, |
| 30 | + no_default_libraries: false, |
| 31 | + env: "newlib".into(), |
| 32 | + ..Default::default() |
| 33 | + }, |
| 34 | + } |
| 35 | +} |
0 commit comments