1set(CMAKE_SYSTEM_NAME Generic)
2
3set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
4set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
5set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
6
7set(CMAKE_C_FLAGS "-march=rv32imc" CACHE STRING "C Compiler Base Flags")
8set(CMAKE_CXX_FLAGS "-march=rv32imc" CACHE STRING "C++ Compiler Base Flags")
9set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -march=rv32imc --specs=nosys.specs" CACHE STRING "Linker Base Flags")
10