libxx: Add CXX_RTTI for enabling RTTI support for C++ applications

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2022-03-25 16:09:35 -03:00 committed by Petro Karashchenko
parent 494230a841
commit 2cd1769619
2 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,9 @@ ARCHCXXFLAGS = -fno-common -ffunction-sections -fdata-sections -nostdinc++
ifeq ($(CONFIG_CXX_EXCEPTION),)
ARCHCXXFLAGS += -fno-exceptions -fcheck-new
endif
ifeq ($(CONFIG_CXX_RTTI),)
ARCHCXXFLAGS += -fno-rtti
endif
ARCHPICFLAGS = -fpic
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
ARCHWARNINGSXX = -Wall -Wshadow -Wundef

View File

@ -83,6 +83,9 @@ config HAVE_CXXINITIALIZE
config CXX_EXCEPTION
bool "Enable Exception Support"
config CXX_RTTI
bool "Enable RTTI Support"
if UCLIBCXX
config UCLIBCXX_BUFSIZE