2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Missing sorting, which may lead to unnecessary rebuilds

This commit is contained in:
Thomas Nagy 2014-10-18 11:23:57 +02:00
parent c50f084ac8
commit 7b7531b0c6
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ class src2c(Task.Task):
if getattr(self.generator, 'link_task', None):
self.generator.link_task.set_run_after(tsk)
self.generator.link_task.inputs.append(tsk.outputs[0])
self.generator.link_task.inputs.sort(key=lambda x: x.abspath())
def runnable_status(self):

View File

@ -642,6 +642,7 @@ class src2c(Task.Task):
if getattr(self.generator, 'link_task', None): <8>
self.generator.link_task.set_run_after(tsk)
self.generator.link_task.inputs.append(tsk.outputs[0])
self.generator.link_task.inputs.sort(key=lambda x: x.abspath())
def runnable_status(self):
ret = super(src2c, self).runnable_status()