Skip to content

Commit

Permalink
c++: kconfig: EXCEPTIONS needs to depend on NEWLIB_LIBC
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aurel32 authored and andrewboie committed Nov 28, 2018
1 parent b5f9771 commit a0b9e70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/cpp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0b9e70

Please sign in to comment.