From f0e3280c61e6794038e01dcadc167943e8f1b990 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 7 Jun 2021 16:21:42 +0900 Subject: [PATCH] cpp: Fix C++ exception handling newlib dependency This commit makes C++ exception handling feature depend on the full version of newlib (i.e. `CONFIG_NEWLIB_LIBC_NANO=n`). The `nano.specs`, which selects the nano variant of newlib, libstdc++, and libsupc++, does not support C++ exception handling because its lib*c++ is compiled with `-fno-exceptions`. For more details, refer to the issue #35972. Signed-off-by: Stephanos Ioannidis --- subsys/cpp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/cpp/Kconfig b/subsys/cpp/Kconfig index 60e060f30f3..3acef68a4f4 100644 --- a/subsys/cpp/Kconfig +++ b/subsys/cpp/Kconfig @@ -54,6 +54,7 @@ if LIB_CPLUSPLUS config EXCEPTIONS bool "Enable C++ exceptions support" + depends on !NEWLIB_LIBC_NANO help This option enables support of C++ exceptions.