diff --git a/subsys/cpp/Kconfig b/subsys/cpp/Kconfig index 369e97ab2dd..fa502b5374b 100644 --- a/subsys/cpp/Kconfig +++ b/subsys/cpp/Kconfig @@ -44,25 +44,25 @@ config STD_CPP2A endchoice +if ! MINIMAL_LIBC + config LIB_CPLUSPLUS bool "Link with STD C++ library" help Link with STD C++ Library. +if LIB_CPLUSPLUS + config EXCEPTIONS bool "Enable C++ exceptions support" - select LIB_CPLUSPLUS - depends on !MINIMAL_LIBC help This option enables support of C++ exceptions. config RTTI bool "Enable C++ RTTI support" - select LIB_CPLUSPLUS help This option enables support of C++ RTTI. -if LIB_CPLUSPLUS config ZEPHYR_CPLUSPLUS bool "Use Zephyr C++ Implementation" @@ -72,4 +72,6 @@ config ZEPHYR_CPLUSPLUS endif # LIB_CPLUSPLUS +endif # ! MINIMAL_LIBC + endif # CPLUSPLUS