1 use crate::spec
::{CodeModel, LinkerFlavor, LldFlavor, PanicStrategy, RelocModel}
;
2 use crate::spec
::{Target, TargetOptions}
;
4 pub fn target() -> Target
{
6 data_layout
: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".to_string(),
7 llvm_target
: "riscv64".to_string(),
9 arch
: "riscv64".to_string(),
11 options
: TargetOptions
{
12 linker_flavor
: LinkerFlavor
::Lld(LldFlavor
::Ld
),
13 linker
: Some("rust-lld".to_string()),
14 llvm_abiname
: "lp64d".to_string(),
15 cpu
: "generic-rv64".to_string(),
16 max_atomic_width
: Some(64),
17 features
: "+m,+a,+f,+d,+c".to_string(),
19 panic_strategy
: PanicStrategy
::Abort
,
20 relocation_model
: RelocModel
::Static
,
21 code_model
: Some(CodeModel
::Medium
),
22 emit_debug_gdb_scripts
: false,
23 eh_frame_header
: false,