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

This commit is contained in:
Alexey Lapshin
2026-06-17 14:02:02 +08:00
committed by BOT
parent d3798f6c49
commit af5c6372a7
+3
View File
@@ -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()