Skip to content

Commit

Permalink
cpp: Fix C++ exception handling newlib dependency
Browse files Browse the repository at this point in the history
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 <root@stephanos.io>
  • Loading branch information
stephanosio authored and galak committed Jun 8, 2021
1 parent 7e47ef2 commit f0e3280
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 @@ -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.

Expand Down

0 comments on commit f0e3280

Please sign in to comment.