Skip to content
Snippets Groups Projects
Commit 98c02b80 authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

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.
parent f89b7275
Branches
No related tags found
No related merge requests found
...@@ -329,7 +329,7 @@ $(info $(USEPKG:%=$(RIOTPKG)/%/Makefile.include)) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment