2021-03-10 06:47:40 -05:00
|
|
|
#
|
|
|
|
# Warn if the toolchain version doesn't match
|
|
|
|
#
|
2021-09-10 12:51:30 -04:00
|
|
|
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
|
2022-08-31 16:59:15 -04:00
|
|
|
execute_process(
|
|
|
|
COMMAND ${CMAKE_C_COMPILER} -dumpmachine
|
|
|
|
OUTPUT_VARIABLE toolchain_name
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
ERROR_QUIET)
|
|
|
|
check_expected_tool_version(${toolchain_name} ${CMAKE_C_COMPILER})
|
2021-07-08 12:11:33 -04:00
|
|
|
endif()
|
2021-09-10 12:51:30 -04:00
|
|
|
|
|
|
|
if(NOT ${target} STREQUAL "linux" AND CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
|
|
message(WARNING "Building ESP-IDF with clang is an experimental feature and is not yet officially supported.")
|
|
|
|
endif()
|