diff --git a/lib/cpp/Kconfig b/lib/cpp/Kconfig index 4ab035c6f8c..b7e5fc6c6d4 100644 --- a/lib/cpp/Kconfig +++ b/lib/cpp/Kconfig @@ -75,7 +75,7 @@ config LIB_CPLUSPLUS if LIB_CPLUSPLUS -config EXCEPTIONS +config CPP_EXCEPTIONS bool "C++ exceptions support" depends on !NEWLIB_LIBC_NANO help diff --git a/lib/cpp/Kconfig.deprecated b/lib/cpp/Kconfig.deprecated index 65f56e73b95..c5f9e152039 100644 --- a/lib/cpp/Kconfig.deprecated +++ b/lib/cpp/Kconfig.deprecated @@ -12,4 +12,18 @@ config CPLUSPLUS [DEPRECATED] Select CPP instead. +if LIB_CPLUSPLUS + +config EXCEPTIONS + bool "[DEPRECATED] C++ exceptions support" + depends on !NEWLIB_LIBC_NANO + select CPP_EXCEPTIONS + select DEPRECATED + help + This option enables support of C++ exceptions. + + [DEPRECATED] Select CPP_EXCEPTIONS instead. + +endif # LIB_CPLUSPLUS + endmenu