From c6fe82bfa110cba3aa461c8d4a6f0f8c4e83077f Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 9 Nov 2020 17:12:55 +0800 Subject: [PATCH] boards/sim: enable run-time type identification BTW, correct some cxx compilation options Change-Id: Id3e3eab2020ef1991d2760426d81b40e6e5eff4e Signed-off-by: chao.an --- boards/sim/sim/sim/scripts/Make.defs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index 691f14d301..9b31d9f73f 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -36,7 +36,10 @@ ifeq ($(CONFIG_STACK_CANARIES),y) endif ARCHCPUFLAGS = -fno-builtin -ARCHCPUFLAGSXX = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti +ARCHCPUFLAGSXX = -fno-builtin -nostdinc++ -fcheck-new +ifeq ($(CONFIG_CXX_EXCEPTION),) + ARCHCPUFLAGSXX += -fno-exceptions +endif ARCHPICFLAGS = -fpic ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef ARCHWARNINGSXX = -Wall -Wshadow -Wundef