All uncommitted work from ESP32 GDB stub development session. Includes: - GDB stub (uos_gdbstub.c/.h/_entry.S) - Startup vector table rewrite - ESP32 HAL integration files - Boot chain design docs - AGENTS.md absolute rules (commit before refactor, no unauthorized changes) - All prior deepseek session work This commit prevents further data loss. No claims of correctness.
17 lines
618 B
CMake
17 lines
618 B
CMake
#
|
|
# Warn if the toolchain version doesn't match
|
|
#
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(NOT (${target} STREQUAL "linux" OR CMAKE_C_COMPILER_ID MATCHES "Clang"))
|
|
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})
|
|
endif()
|
|
|
|
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()
|