boards/sim: enable run-time type identification

BTW, correct some cxx compilation options

Change-Id: Id3e3eab2020ef1991d2760426d81b40e6e5eff4e
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2020-11-09 17:12:55 +08:00
committed by Abdelatif Guettouche
parent 3cfdf4236f
commit 9147014c1a

View File

@@ -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