mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(esp_libc): make picolibc default libc
This commit is contained in:
@@ -100,3 +100,14 @@ ASSERT((ADDR(NEXT_SECTION) == ADDR(PREV_SECTION) + SIZEOF(PREV_SECTION)), \
|
||||
#else
|
||||
#define SECTION_AFTER_FLASH_RODATA .flash.tdata
|
||||
#endif
|
||||
|
||||
#if CONFIG_LIBC_PICOLIBC
|
||||
# if CONFIG_LIBC_PICOLIBC_NEWLIB_COMPATIBILITY
|
||||
# define PICOLIBC_REENT_STUB 16
|
||||
# else
|
||||
# define PICOLIBC_REENT_STUB 4
|
||||
# endif
|
||||
#define ASSERT_PICOLIBC_REENT_STUB() ASSERT((_picolibc_reent_stub_end - _picolibc_reent_stub_start) == PICOLIBC_REENT_STUB, "Newlib _reent stub have wrong size")
|
||||
#else
|
||||
#define ASSERT_PICOLIBC_REENT_STUB()
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user