Skip to content

Commit 3306289

Browse files
committed
Add support for RISC-V 32bit target
1 parent 626a1a5 commit 3306289

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

arrayboundscheck/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ elseif(CONFIG_CPU_CORTEX_M)
1414
else()
1515
message(FATAL_ERROR "Unknown Cortex-M target")
1616
endif()
17+
elseif(CONFIG_RISCV)
18+
if(CONFIG_RISCV_ISA_RV32I)
19+
set(ldc_target riscv32-unknown-elf)
20+
else()
21+
message(FATAL_ERROR "Unsupported riscv ISA")
22+
endif()
1723
else()
1824
message(FATAL_ERROR "ARCH ${ARCH} not supported")
1925
endif()

pthread/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ elseif(CONFIG_CPU_CORTEX_M)
1414
else()
1515
message(FATAL_ERROR "Unknown Cortex-M target")
1616
endif()
17+
elseif(CONFIG_RISCV)
18+
if(CONFIG_RISCV_ISA_RV32I)
19+
set(ldc_target riscv32-unknown-elf)
20+
else()
21+
message(FATAL_ERROR "Unsupported riscv ISA")
22+
endif()
1723
else()
1824
message(FATAL_ERROR "ARCH ${ARCH} not supported")
1925
endif()

0 commit comments

Comments
 (0)