We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6079b4c commit 4d66484Copy full SHA for 4d66484
CMakeLists.txt
@@ -66,10 +66,14 @@ function(_rust_map_target)
66
set(RUST_TARGET "${RUST_TARGET}c")
67
endif()
68
set(RUST_TARGET "${RUST_TARGET}-unknown-none-elf" PARENT_SCOPE)
69
- elseif(CONFIG_RISCV_ISA_RV32I)
+ elseif(CONFIG_RISCV_ISA_RV32I OR CONFIG_RISCV_ISA_RV32E)
70
# We have multiple choices, try to pick the best.
71
# Note that Rust currently only supports subsets of "riscv32imafc" targets!
72
- set(RUST_TARGET "riscv32i")
+ if(CONFIG_RISCV_ISA_RV32I)
73
+ set(RUST_TARGET "riscv32i")
74
+ else()
75
+ set(RUST_TARGET "riscv32e")
76
+ endif()
77
if(CONFIG_RISCV_ISA_EXT_M)
78
set(RUST_TARGET "${RUST_TARGET}m")
79
0 commit comments