From 83c66ee37230989667d9b9ecccb72534e38d5daf Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 3 Jan 2021 21:59:34 +0000 Subject: Ensure that the files are always processed in the same order This is important to detect if the deps have changed. --- tools/mkdeps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/mkdeps.py b/tools/mkdeps.py index aa1c7e0..81976da 100755 --- a/tools/mkdeps.py +++ b/tools/mkdeps.py @@ -38,7 +38,7 @@ def main(): inc = ["-I%s" % d for d in args.include.split(":")] cmd = ["sdcc", "-MM"] + inc result = [] - for d in glob.glob(os.path.join(args.dir, "*.c")): + for d in sorted(glob.glob(os.path.join(args.dir, "*.c"))): if args.verbose: print("running %r" % ' '.join(cmd + [d])) out = subprocess.run(cmd + [d], stdout=subprocess.PIPE, -- cgit v1.2.3