mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
2e6c8cdce3
Since the behavior is well defined on Xtensa with Window ABI we can suppress a frame-address warning. Also fix the CMAKE_C*_FLAGS parsing.
10 lines
421 B
CMake
10 lines
421 B
CMake
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
set(CMAKE_C_COMPILER xtensa-esp32-elf-gcc)
|
|
set(CMAKE_CXX_COMPILER xtensa-esp32-elf-g++)
|
|
set(CMAKE_ASM_COMPILER xtensa-esp32-elf-gcc)
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-nostdlib" CACHE STRING "Linker Base Flags")
|
|
set(CMAKE_C_FLAGS "-mlongcalls -Wno-frame-address" CACHE STRING "C Compiler Base Flags")
|
|
set(CMAKE_CXX_FLAGS "-mlongcalls -Wno-frame-address" CACHE STRING "C++ Compiler Base Flags")
|