]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_target/src/spec/riscv32imc_unknown_none_elf.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / compiler / rustc_target / src / spec / riscv32imc_unknown_none_elf.rs
CommitLineData
f9f354fc 1use crate::spec::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel};
29967ef6 2use crate::spec::{Target, TargetOptions};
b7449926 3
29967ef6
XL
4pub fn target() -> Target {
5 Target {
b7449926
XL
6 data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(),
7 llvm_target: "riscv32".to_string(),
29967ef6 8 pointer_width: 32,
b7449926 9 arch: "riscv32".to_string(),
b7449926
XL
10
11 options: TargetOptions {
29967ef6 12 linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
b7449926
XL
13 linker: Some("rust-lld".to_string()),
14 cpu: "generic-rv32".to_string(),
60c5eb7d 15 max_atomic_width: Some(0),
b7449926
XL
16 atomic_cas: false,
17 features: "+m,+c".to_string(),
18 executables: true,
19 panic_strategy: PanicStrategy::Abort,
f9f354fc 20 relocation_model: RelocModel::Static,
b7449926 21 emit_debug_gdb_scripts: false,
f9652781 22 eh_frame_header: false,
dfeec247 23 ..Default::default()
b7449926 24 },
29967ef6 25 }
b7449926 26}