fix(libc): picolibc: disable C11 annex K in compatibility mode

This commit is contained in:
Alexey Lapshin
2026-07-09 12:28:17 +08:00
committed by BOT
parent 30df02cb6a
commit aa14636a88
@@ -69,6 +69,9 @@ if(CONFIG_IDF_TOOLCHAIN_GCC)
# --gc-sections option.
get_picolibc_specs_path(picolibc_specs_path)
idf_toolchain_add_flags(COMPILE_OPTIONS "\"-specs=${picolibc_specs_path}\"")
if(LIBC_PICOLIBC_NEWLIB_COMPATIBILITY)
idf_toolchain_add_flags(COMPILE_OPTIONS "-D__STDC_WANT_LIB_EXT1__=0")
endif()
else()
idf_toolchain_remove_flags(COMPILE_OPTIONS "-specs=.*picolibc.*")
endif()