]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/riscv32imac_unknown_xous_elf.rs
Rollup merge of #104464 - mati865:reduce-eh-overallocation-amd64, r=thomcc
[rust.git] / compiler / rustc_target / src / spec / riscv32imac_unknown_xous_elf.rs
1 use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions};
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(),
12             linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
13             linker: Some("rust-lld".into()),
14             cpu: "generic-rv32".into(),
15             max_atomic_width: Some(32),
16             features: "+m,+a,+c".into(),
17             panic_strategy: PanicStrategy::Abort,
18             relocation_model: RelocModel::Static,
19             ..Default::default()
20         },
21     }
22 }