1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/avr8_common: use C++ new and delete operator

This commit is contained in:
Gunar Schorcht 2022-01-03 12:05:12 +01:00
parent 4bfd549301
commit d778e77c97
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,8 @@ config CPU_ARCH_AVR8
select MODULE_MALLOC_THREAD_SAFE if TEST_KCONFIG
# static C++ constructors need guards for thread safe initialization
select MODULE_CXX_CTOR_GUARDS if MODULE_CPP
# new and delete operators needed
select MODULE_CPP_NEW_DELETE if MODULE_CPP
## Common CPU symbols
config CPU_ARCH

View File

@ -18,3 +18,8 @@ endif
ifneq (,$(filter cpp,$(FEATURES_USED)))
USEMODULE += cxx_ctor_guards
endif
# new and delete operators needed
ifneq (,$(filter cpp,$(FEATURES_USED)))
USEMODULE += cpp_new_delete
endif