]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/riscv32imac_unknown_xous_elf.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / riscv32imac_unknown_xous_elf.rs
CommitLineData
2b03887a 1use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions};
923072b8
FG
2
3pub 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}