1# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
2#
3# SPDX-License-Identifier: Apache-2.0
4
5set(CMAKE_SYSTEM_NAME Generic)
6
7set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
8set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
9set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
10
11set(CMAKE_C_FLAGS "-march=rv32imc_zicsr_zifencei" CACHE STRING "C Compiler Base Flags")
12set(CMAKE_CXX_FLAGS "-march=rv32imc_zicsr_zifencei" CACHE STRING "C++ Compiler Base Flags")
13set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -march=rv32imc_zicsr_zifencei --specs=nosys.specs" CACHE STRING "Linker Base Flags")
14