mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(libc): picolibc: disable C11 annex K in compatibility mode
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user