Skip to content

Commit

Permalink
sys/cpp_new_delete: always enable the module when C++ is used
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Feb 7, 2024
1 parent cc6eb46 commit 453a8be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
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

0 comments on commit 453a8be

Please sign in to comment.