Skip to content

Commit 32d703f

Browse files
stephanosiokeith-packard
authored andcommitted
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 e508ab1 commit 32d703f

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
@@ -123,7 +123,7 @@ config LIBCXX_LIBCPP
123123
bool "LLVM C++ Standard Library"
124124
depends on "$(TOOLCHAIN_HAS_LIBCXX)" = "y"
125125
depends on !NATIVE_APPLICATION
126-
depends on NEWLIB_LIBC
126+
depends on NEWLIB_LIBC || PICOLIBC
127127
select FULL_LIBCPP_SUPPORTED
128128
help
129129
Build with LLVM C++ Standard Library (libc++) provided by LLVM

0 commit comments

Comments
 (0)