Skip to content

Commit 8582366

Browse files
committed
lib: cpp: Allow selecting libc++ with picolibc
LLVM C++ Standard Library aka. libc++ may be used with Picolibc -- for example, LLVM Embedded Toolchain for Arm ships with Picolibc and libc++ compiled for Picolibc, and so does Zephyr SDK LLVM toolchain. Ideally, we would a flag like `TOOLCHAIN_HAS_LIBCXX_PICOLIBC` indicating that toolchain has libc++ compiled specifically for Picolibc; but, we do not want to overcomplicate the toolchain feature flags at this time without proper underlying infrastructure to handle it. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent a7fe7b3 commit 8582366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cpp/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ config GLIBCXX_LIBCPP
121121
config LIBCXX_LIBCPP
122122
bool "LLVM C++ Standard Library"
123123
depends on "$(TOOLCHAIN_HAS_LIBCXX)" = "y"
124-
depends on NEWLIB_LIBC
124+
depends on NEWLIB_LIBC || PICOLIBC
125125
select FULL_LIBCPP_SUPPORTED
126126
help
127127
Build with LLVM C++ Standard Library (libc++) provided by LLVM

0 commit comments

Comments
 (0)