1 use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel};
2 use crate::spec::{Target, TargetOptions};
4 pub fn target() -> Target {
6 data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(),
7 llvm_target: "riscv32".to_string(),
9 arch: "riscv32".to_string(),
11 options: TargetOptions {
12 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
13 linker: Some("rust-lld".to_string()),
14 cpu: "generic-rv32".to_string(),
15 max_atomic_width: Some(32),
17 features: "+m,+a,+c".to_string(),
19 panic_strategy: PanicStrategy::Abort,
20 relocation_model: RelocModel::Static,
21 emit_debug_gdb_scripts: false,
22 unsupported_abis: super::riscv_base::unsupported_abis(),
23 eh_frame_header: false,