From 98c02b804546e9f60018d19a5c38f6f78729013d Mon Sep 17 00:00:00 2001 From: smlng Date: Tue, 10 Jul 2018 15:35:28 +0200 Subject: [PATCH] make: fix dedup USEMODULE_INCLUDES in Makefile.include Fixes a regression introduces #9479 which breaks building on macOS. The introduces `uniq` function is never called, hence the includes ie. USEMODULE_INCLUDES are not used. --- Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 7267c6ca66..ed88844491 100644 --- a/Makefile.include +++ b/Makefile.include @@ -329,7 +329,7 @@ $(info $(USEPKG:%=$(RIOTPKG)/%/Makefile.include)) # Deduplicate includes without sorting them # see https://stackoverflow.com/questions/16144115/makefile-remove-duplicate-words-without-sorting -define uniq = +define uniq $(eval seen :=) $(foreach _,$1,$(if $(filter $_,$(seen)),,$(eval seen += $_))) $(seen)