diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-01-03 21:59:34 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-01-03 21:59:34 +0000 |
commit | 83c66ee37230989667d9b9ecccb72534e38d5daf (patch) | |
tree | 2c2937b0f16e98477ebcc904046455d9dceb444e /tools | |
parent | 09dcf979f396777aeb822058211f9eb0db4dc238 (diff) | |
download | ubox-msx-lib-83c66ee37230989667d9b9ecccb72534e38d5daf.tar.gz ubox-msx-lib-83c66ee37230989667d9b9ecccb72534e38d5daf.zip |
Ensure that the files are always processed in the same order
This is important to detect if the deps have changed.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mkdeps.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |