Skip to content

Commit d1fd321

Browse files
committed
lib: cpp: Introduce FULL_LIBCPP_SUPPORTED similar to C version
Introduce Kconfig symbol FULL_LIBCPP_SUPPORTED that is similar to the C version FULL_LIBC_SUPPORTED. This way we can utilize the same pattern in tests and samples to filter for when a full libc++ is needed. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
1 parent af82342 commit d1fd321

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Kconfig.zephyr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ config CODING_GUIDELINE_CHECK
317317
config NATIVE_APPLICATION
318318
bool "Build as a native host application"
319319
select FULL_LIBC_SUPPORTED
320+
select FULL_LIBCPP_SUPPORTED if CPP
320321
help
321322
Build as a native application that can run on the host and using
322323
resources and libraries provided by the host.

lib/cpp/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ config REQUIRES_FULL_LIBCPP
6464
a subsystem or an application. This will also include a full C
6565
library implementation.
6666

67+
config FULL_LIBCPP_SUPPORTED
68+
bool
69+
help
70+
Selected when the target has at least one C++ library that offers a
71+
complete implementation and which would be selected when
72+
REQUIRES_FULL_LIBCPP is set.
73+
6774
choice LIBCPP_IMPLEMENTATION
6875
prompt "C++ Standard Library Implementation"
6976
default EXTERNAL_LIBCPP if REQUIRES_FULL_LIBCPP && NATIVE_APPLICATION
@@ -84,6 +91,7 @@ config GLIBCXX_LIBCPP
8491
bool "GNU C++ Standard Library"
8592
depends on !NATIVE_APPLICATION
8693
depends on NEWLIB_LIBC || PICOLIBC
94+
select FULL_LIBCPP_SUPPORTED
8795
help
8896
Build with GNU C++ Standard Library (libstdc++) provided by the GNU
8997
Compiler Collection (GCC)-based toolchain.

0 commit comments

Comments
 (0)