From a0b9e70e1095da00f3df69473fca6d0c728431a3 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sun, 25 Nov 2018 23:30:20 +0100 Subject: [PATCH] c++: kconfig: EXCEPTIONS needs to depend on NEWLIB_LIBC C++ exception support needs to use the newlib C library in order to get the abort function. C++ exceptions also do not work with the simple malloc/free implementation provided by the Zephyr minimal C library. Signed-off-by: Aurelien Jarno --- subsys/cpp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/cpp/Kconfig b/subsys/cpp/Kconfig index ee13e731eb8..ee3f47805f6 100644 --- a/subsys/cpp/Kconfig +++ b/subsys/cpp/Kconfig @@ -55,6 +55,7 @@ config LIB_CPLUSPLUS config EXCEPTIONS depends on CPLUSPLUS + depends on NEWLIB_LIBC select LIB_CPLUSPLUS bool "Enable C++ exceptions support" help