From c0c6ccec7881c92e0a96fa9114af553c4434d83b Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 14 Jun 2018 05:59:39 +0200 Subject: add option for special CFLAGS/CXXFLAGS Do not disable exception handling and unwinding options by default, as this breaks exception handling in C++ applications using libstdc++. Reported-by: Tom Deblauwe --- target/config/Config.in.toolchain | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target') diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain index 499e67011..0845490a1 100644 --- a/target/config/Config.in.toolchain +++ b/target/config/Config.in.toolchain @@ -32,6 +32,13 @@ config ADK_TARGET_CFLAGS_OPT_O0 endchoice +config ADK_TARGET_CFLAGS_DISABLE_EH + bool "Disable exception handling and unwindung via compiler flags" + depends on !ADK_DEBUG + help + Do not use this optimization flags if you are planning to use C++ + applications, which are often using exception handling. + menu "Compiler language support" config ADK_TOOLCHAIN_WITH_CXX bool "enable C++" -- cgit v1.2.3