rustc_target/spec/targets/
riscv32imafc_esp_espidf.rs
1use crate::spec::{PanicStrategy, RelocModel, Target, TargetOptions, cvs};
2
3pub(crate) fn target() -> Target {
4 Target {
5 data_layout: "e-m:e-p:32:32-i64:64-n32-S128".into(),
6 llvm_target: "riscv32".into(),
7 metadata: crate::spec::TargetMetadata {
8 description: Some("RISC-V ESP-IDF".into()),
9 tier: Some(3),
10 host_tools: Some(false),
11 std: Some(true),
12 },
13 pointer_width: 32,
14 arch: "riscv32".into(),
15
16 options: TargetOptions {
17 families: cvs!["unix"],
18 os: "espidf".into(),
19 env: "newlib".into(),
20 vendor: "espressif".into(),
21 linker: Some("riscv32-esp-elf-gcc".into()),
22 cpu: "generic-rv32".into(),
23
24 max_atomic_width: Some(32),
25 atomic_cas: true,
26
27 llvm_abiname: "ilp32f".into(),
28 features: "+m,+a,+c,+f".into(),
29 panic_strategy: PanicStrategy::Abort,
30 relocation_model: RelocModel::Static,
31 emit_debug_gdb_scripts: false,
32 eh_frame_header: false,
33 ..Default::default()
34 },
35 }
36}