summaryrefslogtreecommitdiff
path: root/mk/toolchain.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/toolchain.mk')
-rw-r--r--mk/toolchain.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index cd9949d..f390aed 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -78,6 +78,13 @@ __clang_cflags := -Qunused-arguments -fcolor-diagnostics
__TARGET_CFLAGS += $(if $(CONFIG_EMBTK_LLVM_ONLY_TOOLCHAIN),$(__clang_cflags))
__TARGET_CFLAGS += $(if $(CONFIG_EMBTK_LLVM_DEFAULT_TOOLCHAIN),$(__clang_cflags))
+#
+# FIXME: remove this when c++ exceptions handling fully supported in ARM
+#
+ifeq ($(TARGETCXX),$(TARGETGCXX))
+__TARGET_CFLAGS := $(filter-out $(__clang_cflags),$(__TARGET_CFLAGS))
+endif
+
TARGET_CFLAGS := $(strip $(__TARGET_CFLAGS))
TARGET_CXXFLAGS := $(filter-out $(__clang_cflags),$(TARGET_CFLAGS))
CROSS_COMPILE := $(embtk_tools)/bin/$(STRICT_GNU_TARGET)-