/ tools / cmake / toolchain-esp32.cmake
toolchain-esp32.cmake
1  set(CMAKE_SYSTEM_NAME Generic)
2  
3  set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc)
4  set(CMAKE_CXX_COMPILER xtensa-esp32-elf-g++)
5  set(CMAKE_ASM_COMPILER xtensa-esp32-elf-gcc)
6  
7  set(CMAKE_C_FLAGS "-mlongcalls -Wno-frame-address" CACHE STRING "C Compiler Base Flags")
8  set(CMAKE_CXX_FLAGS "-mlongcalls -Wno-frame-address" CACHE STRING "C++ Compiler Base Flags")