mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
0baf2c43cc
Defining CMake variables from the command-line or from another CMake project, such as `-DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS=`, caused a link failure as ESP CMake was unable to set its proper compilation flags. Additional CMake compiler flags can now be provided by another project. * Closes https://github.com/espressif/esp-idf/issues/7507
9 lines
216 B
CMake
9 lines
216 B
CMake
set(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
set(CMAKE_C_COMPILER xtensa-esp32s2-elf-gcc)
|
|
set(CMAKE_CXX_COMPILER xtensa-esp32s2-elf-g++)
|
|
set(CMAKE_ASM_COMPILER xtensa-esp32s2-elf-gcc)
|
|
|
|
|
|
list(APPEND compile_options "-mlongcalls")
|