libs:cxx.defs: bypass -Wno-missing-exception-spec flag in xcc

Xtensa-toolchain do not recognize -Wno-missing-exception-spec flags
This commit is contained in:
zhuyanlin 2021-08-13 14:34:35 +08:00 committed by Alan Carvalho de Assis
parent 6b412c873b
commit 5e817e25e8
1 changed files with 4 additions and 2 deletions

View File

@ -31,5 +31,7 @@ CXXSRCS += libxx_stdthrow.cxx
# FAR void *operator new(std::size_t nbytes)
# ^
# throw(std::bad_alloc)
libxx_new.cxx_CXXFLAGS += -Wno-missing-exception-spec
libxx_newa.cxx_CXXFLAGS += -Wno-missing-exception-spec
ifneq ($(CONFIG_XTENSA_TOOLCHAIN_XCC), y)
libxx_new.cxx_CXXFLAGS += -Wno-missing-exception-spec
libxx_newa.cxx_CXXFLAGS += -Wno-missing-exception-spec
endif