mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Stitch .cpp files into single header in deterministic order
This commit is contained in:
parent
0673b9be35
commit
46e28791ff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user