Merge pull request #266 from bmwiedemann/sort

Sort input file list to make builds deterministic.
This commit is contained in:
Jakob P. Liljenberg 2022-02-14 09:19:15 +01:00 committed by GitHub
commit 4a94c83aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,9 +129,9 @@ ifdef DEBUG
override OPTFLAGS := -O0 -g
endif
SOURCES := $(shell find $(SRCDIR) -maxdepth 1 -type f -name *.$(SRCEXT))
SOURCES := $(sort $(shell find $(SRCDIR) -maxdepth 1 -type f -name *.$(SRCEXT)))
SOURCES += $(shell find $(SRCDIR)/$(PLATFORM_DIR) -type f -name *.$(SRCEXT))
SOURCES += $(sort $(shell find $(SRCDIR)/$(PLATFORM_DIR) -type f -name *.$(SRCEXT)))
SOURCE_COUNT := $(words $(SOURCES))