Skip to content

Commit

Permalink
Makefile.defs: Auto-fix the "no allocator" edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Mar 28, 2019
1 parent f89b020 commit 3b38256
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,14 @@ else
THISREVISION = unknown
endif

ifeq (,$(findstring F_MALLOC, $(DEFS)))
ifeq (,$(findstring Q_MALLOC, $(DEFS)))
ifeq (,$(findstring HP_MALLOC, $(DEFS)))
DEFS+= -DQ_MALLOC
endif
endif
endif

ifneq (,$(MEM_STATS_HDR))
EXPECTED_MD5=$(shell [ -f $(MEM_STATS_HDR) ] && tail -n 1 $(MEM_STATS_HDR) | awk '{print $$4}')
MODULES_MD5=$(shell find $(dir $(MEM_STATS_HDR))/../modules -name "[Mm]akefile" | \
Expand Down

1 comment on commit 3b38256

@bogdan-iancu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.