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:
parent
4bfd549301
commit
d778e77c97
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user