1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
smlng 2018-07-10 15:35:28 +02:00
parent f89b727567
commit 98c02b8045

View File

@ -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)