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 Xiang Xiao
parent 8f976669a3
commit 32ea691d5f

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