]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_target/src/spec/riscv32gc_unknown_linux_gnu.rs
Rollup merge of #76758 - adamlesinski:clone_clock, r=tmandry
[rust.git] / compiler / rustc_target / src / spec / riscv32gc_unknown_linux_gnu.rs
1 use crate::spec::{CodeModel, LinkerFlavor, Target, TargetOptions, TargetResult};
2
3 pub fn target() -> TargetResult {
4     Ok(Target {
5         llvm_target: "riscv32-unknown-linux-gnu".to_string(),
6         target_endian: "little".to_string(),
7         target_pointer_width: "32".to_string(),
8         target_c_int_width: "32".to_string(),
9         target_env: "gnu".to_string(),
10         data_layout: "e-m:e-p:32:32-i64:64-n32-S128".to_string(),
11         arch: "riscv32".to_string(),
12         target_os: "linux".to_string(),
13         target_vendor: "unknown".to_string(),
14         linker_flavor: LinkerFlavor::Gcc,
15         options: TargetOptions {
16             unsupported_abis: super::riscv_base::unsupported_abis(),
17             code_model: Some(CodeModel::Medium),
18             cpu: "generic-rv32".to_string(),
19             features: "+m,+a,+f,+d,+c".to_string(),
20             llvm_abiname: "ilp32d".to_string(),
21             max_atomic_width: Some(32),
22             ..super::linux_base::opts()
23         },
24     })
25 }