diff --git a/boards/sim/sim/sim/scripts/Make.defs b/boards/sim/sim/sim/scripts/Make.defs index 897dd22bcf..fb6bad3a97 100644 --- a/boards/sim/sim/sim/scripts/Make.defs +++ b/boards/sim/sim/sim/scripts/Make.defs @@ -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 diff --git a/libs/libxx/Kconfig b/libs/libxx/Kconfig index 693c871dd2..29a33626ed 100644 --- a/libs/libxx/Kconfig +++ b/libs/libxx/Kconfig @@ -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