Skip to content

Commit 45733aa

Browse files
keith-packardstephanosio
authored andcommitted
lib/libc: Add NEWLIB_LIBC_SUPPORTED
This reflects whether newlib is available in the environment. This symbol should be used in place of TOOLCHAIN_HAS_NEWLIB. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent 02262d7 commit 45733aa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/libc/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ config MINIMAL_LIBC_SUPPORTED
1616
help
1717
Selected when the target has support for the minimal C library
1818

19+
config NEWLIB_LIBC_SUPPORTED
20+
bool
21+
default y
22+
depends on "$(TOOLCHAIN_HAS_NEWLIB)" = "y"
23+
help
24+
Selected when the target has support for the newlib C library
25+
1926
# Picolibc with C++ support in Zephyr SDK is handled by Zephyr SDK's own Kconfig.
2027
config PICOLIBC_SUPPORTED
2128
bool

0 commit comments

Comments
 (0)