sim: Make.defs: tweak CXXFLAGS for LIBCXX

This commit is contained in:
YAMAMOTO Takashi 2020-10-22 12:57:00 +09:00 committed by Xiang Xiao
parent 92cefb0a78
commit f0e0e6ab4d
1 changed files with 6 additions and 2 deletions

View File

@ -54,9 +54,9 @@ ifeq ($(CONFIG_STACK_CANARIES),y)
endif
ARCHCPUFLAGS = -fno-builtin
ARCHCPUFLAGSXX = -fno-builtin -nostdinc++ -fcheck-new
ARCHCPUFLAGSXX = -fno-builtin -nostdinc++
ifeq ($(CONFIG_CXX_EXCEPTION),)
ARCHCPUFLAGSXX += -fno-exceptions
ARCHCPUFLAGSXX += -fno-exceptions -fcheck-new
endif
ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wstrict-prototypes -Wundef
@ -100,6 +100,10 @@ CXXFLAGS := $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) \
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
ifeq ($(CONFIG_LIBCXX),y)
CXXFLAGS += -DLIBCXX_BUILDING_LIBCXXABI
endif
# Loadable module definitions
CMODULEFLAGS = $(CFLAGS)