Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/cpp_new_delete: always enable the module when C++ is used #20348

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions cpu/avr8_common/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,3 @@ USEMODULE += tiny_strerror_as_strerror
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
4 changes: 4 additions & 0 deletions sys/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ ifneq (,$(filter crc32_fast,$(USEMODULE)))
USEMODULE += checksum
endif

ifneq (,$(filter cpp,$(USEMODULE)))
USEMODULE += cpp_new_delete
endif

ifneq (,$(filter debug_irq_disable,$(USEMODULE)))
USEMODULE += fmt
endif
Expand Down
1 change: 0 additions & 1 deletion sys/cpp11-compat/Makefile.dep
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
USEMODULE += cpp_new_delete
USEMODULE += ztimer64_usec
USEMODULE += timex
FEATURES_REQUIRED += cpp
Expand Down
Loading