mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-29 06:03:18 +08:00
12 lines
512 B
CMake
12 lines
512 B
CMake
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
set(CMAKE_C_COMPILER xtensa-lx106-elf-gcc)
|
|
set(CMAKE_CXX_COMPILER xtensa-lx106-elf-g++)
|
|
set(CMAKE_ASM_COMPILER xtensa-lx106-elf-gcc)
|
|
|
|
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")
|
|
|
|
# Can be removed after gcc 5.2.0 support is removed (ref GCC_NOT_5_2_0)
|
|
set(CMAKE_EXE_LINKER_FLAGS "-nostdlib -Wl,--gc-sections" CACHE STRING "Linker Base Flags")
|