]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | use crate::spec::{CodeModel, Target, TargetOptions}; |
2 | ||
3 | pub fn target() -> Target { | |
4 | Target { | |
5e7ed085 | 5 | llvm_target: "riscv64-unknown-linux-musl".into(), |
6a06907d | 6 | pointer_width: 64, |
5e7ed085 FG |
7 | data_layout: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".into(), |
8 | arch: "riscv64".into(), | |
6a06907d | 9 | options: TargetOptions { |
6a06907d | 10 | code_model: Some(CodeModel::Medium), |
5e7ed085 FG |
11 | cpu: "generic-rv64".into(), |
12 | features: "+m,+a,+f,+d,+c".into(), | |
13 | llvm_abiname: "lp64d".into(), | |
6a06907d XL |
14 | max_atomic_width: Some(64), |
15 | ..super::linux_musl_base::opts() | |
16 | }, | |
17 | } | |
18 | } |