Skip to content

Commit 04870f5

Browse files
committed
toolchain/zephyr: Add TOOLCHAIN_HAS_PICOLIBC for sdk >= 0.16
Zephyr SDK version 0.16 will include picolibc support; add a variable so that tests may check for it. Signed-off-by: Keith Packard <[email protected]>
1 parent 2240cc5 commit 04870f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/toolchain/zephyr/generic.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ include(${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr/generic.cmake)
44

55
set(TOOLCHAIN_KCONFIG_DIR ${ZEPHYR_SDK_INSTALL_DIR}/cmake/zephyr)
66

7+
if(SDK_VERSION VERSION_GREATER_EQUAL 0.16)
8+
set(TOOLCHAIN_HAS_PICOLIBC ON CACHE BOOL "True if toolchain supports picolibc")
9+
endif()
10+
711
message(STATUS "Found toolchain: zephyr ${SDK_VERSION} (${ZEPHYR_SDK_INSTALL_DIR})")

0 commit comments

Comments
 (0)