Stitch .cpp files into single header in deterministic order

This commit is contained in:
Martin Hořeňovský 2017-08-30 15:42:23 +02:00
parent 0673b9be35
commit 46e28791ff

View File

@ -57,7 +57,8 @@ def generate(v):
cppFiles = []
for dir in dirs:
cppFiles += glob(os.path.join(dir, '*.cpp'))
for fname in cppFiles:
# To minimize random diffs, sort the files before processing them
for fname in sorted(cppFiles):
dir, name = fname.rsplit(os.path.sep, 1)
dir += os.path.sep
parseFile(dir, name)