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:
parent
f89b727567
commit
98c02b8045
@ -329,7 +329,7 @@ $(info $(USEPKG:%=$(RIOTPKG)/%/Makefile.include))
|
|||||||
|
|
||||||
# Deduplicate includes without sorting them
|
# Deduplicate includes without sorting them
|
||||||
# see https://stackoverflow.com/questions/16144115/makefile-remove-duplicate-words-without-sorting
|
# see https://stackoverflow.com/questions/16144115/makefile-remove-duplicate-words-without-sorting
|
||||||
define uniq =
|
define uniq
|
||||||
$(eval seen :=)
|
$(eval seen :=)
|
||||||
$(foreach _,$1,$(if $(filter $_,$(seen)),,$(eval seen += $_)))
|
$(foreach _,$1,$(if $(filter $_,$(seen)),,$(eval seen += $_)))
|
||||||
$(seen)
|
$(seen)
|
||||||
|
Loading…
Reference in New Issue
Block a user