Commit e082207a authored by Christian Dietrich's avatar Christian Dietrich
Browse files

incremental_build: sort filenames before starting

parent cac85400
Pipeline #2986 passed with stage
in 0 seconds
......@@ -57,10 +57,12 @@ class IncrementalCompilation(Experiment):
return shell("cd %s; make -j %s", path, str(self.jobs.value))
def get_sources(self, path):
ret = []
for root, dirnames, filenames in os.walk(path):
for filename in filenames:
if filename.endswith(('.h','.c')):
yield os.path.join(root, filename)
ret.append(os.path.join(root, filename))
return sorted(ret)
def touch(self, path):
if self.touch_only.value:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment