]>
Commit | Line | Data |
---|---|---|
2b03887a | 1 | use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions}; |
923072b8 FG |
2 | |
3 | pub fn target() -> Target { | |
4 | Target { | |
5 | data_layout: "e-m:e-p:32:32-i64:64-n32-S128".into(), | |
6 | llvm_target: "riscv32".into(), | |
7 | pointer_width: 32, | |
8 | arch: "riscv32".into(), | |
9 | ||
10 | options: TargetOptions { | |
11 | os: "xous".into(), | |
2b03887a | 12 | linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes), |
923072b8 FG |
13 | linker: Some("rust-lld".into()), |
14 | cpu: "generic-rv32".into(), | |
15 | max_atomic_width: Some(32), | |
16 | features: "+m,+a,+c".into(), | |
923072b8 FG |
17 | panic_strategy: PanicStrategy::Abort, |
18 | relocation_model: RelocModel::Static, | |
19 | ..Default::default() | |
20 | }, | |
21 | } | |
22 | } |