|
| 1 | +use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult}; |
| 2 | + |
| 3 | +pub fn target() -> TargetResult { |
| 4 | + Ok(Target { |
| 5 | + llvm_target: "riscv64-unknown-linux-gnu".to_string(), |
| 6 | + target_endian: "little".to_string(), |
| 7 | + target_pointer_width: "64".to_string(), |
| 8 | + target_c_int_width: "32".to_string(), |
| 9 | + target_env: "gnu".to_string(), |
| 10 | + data_layout: "e-m:e-p:64:64-i64:64-i128:128-n64-S128".to_string(), |
| 11 | + arch: "riscv64".to_string(), |
| 12 | + target_os: "linux".to_string(), |
| 13 | + target_vendor: "unknown".to_string(), |
| 14 | + linker_flavor: LinkerFlavor::Gcc, |
| 15 | + options: TargetOptions { |
| 16 | + abi_blacklist: super::riscv_base::abi_blacklist(), |
| 17 | + code_model: Some("medium".to_string()), |
| 18 | + cpu: "generic-rv64".to_string(), |
| 19 | + features: "+m,+a,+f,+d,+c".to_string(), |
| 20 | + llvm_abiname: "lp64d".to_string(), |
| 21 | + max_atomic_width: Some(64), |
| 22 | + ..super::linux_base::opts() |
| 23 | + }, |
| 24 | + }) |
| 25 | +} |
0 commit comments