2022-01-06 03:17:29 +00:00
|
|
|
include($ENV{IDF_PATH}/tools/cmake/utilities.cmake)
|
|
|
|
|
2018-02-27 04:45:30 +00:00
|
|
|
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)
|
2022-01-20 07:45:13 +00:00
|
|
|
set(_CMAKE_TOOLCHAIN_PREFIX xtensa-esp32-elf-)
|
2018-02-27 04:45:30 +00:00
|
|
|
|
2024-02-23 16:25:08 +00:00
|
|
|
remove_duplicated_flags("-mlongcalls -Wno-frame-address \
|
|
|
|
-fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero \
|
|
|
|
-fno-builtin-stpcpy -fno-builtin-strncpy \
|
|
|
|
${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
2022-01-06 03:17:29 +00:00
|
|
|
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
2024-02-23 16:25:08 +00:00
|
|
|
remove_duplicated_flags("-mlongcalls -Wno-frame-address \
|
|
|
|
-fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero \
|
|
|
|
-fno-builtin-stpcpy -fno-builtin-strncpy \
|
|
|
|
${CMAKE_CXX_FLAGS}" UNIQ_CMAKE_CXX_FLAGS)
|
2022-01-06 03:17:29 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${UNIQ_CMAKE_CXX_FLAGS}" CACHE STRING "C++ Compiler Base Flags" FORCE)
|
2022-06-20 05:43:08 +00:00
|
|
|
remove_duplicated_flags("-mlongcalls ${CMAKE_ASM_FLAGS}" UNIQ_CMAKE_ASM_FLAGS)
|
|
|
|
set(CMAKE_ASM_FLAGS "${UNIQ_CMAKE_ASM_FLAGS}" CACHE STRING "ASM Compiler Base Flags" FORCE)
|