Skip to content

Commit 3034e66

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 184fef5 commit 3034e66

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
@@ -102,7 +102,7 @@ config LIBCXX_LIBCPP
102102
bool "LLVM C++ Standard Library"
103103
depends on "$(TOOLCHAIN_HAS_LIBCXX)" = "y"
104104
depends on !NATIVE_APPLICATION
105-
depends on NEWLIB_LIBC
105+
depends on NEWLIB_LIBC || PICOLIBC
106106
select FULL_LIBCPP_SUPPORTED
107107
help
108108
Build with LLVM C++ Standard Library (libc++) provided by LLVM

0 commit comments

Comments
 (0)