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

Force a fixed order in the link task inputs to prevent unnecessary rebuilds

This commit is contained in:
Thomas Nagy 2013-05-07 17:49:59 +02:00
parent 69f5f71120
commit 1da291a1e6

View File

@ -24,9 +24,9 @@ import waflib.Tools.cxx
def cxx_hook(self, node):
self.create_compiled_task('cxx_qt', node)
class cxx_qt(waflib.Tools.cxx.cxx):
class cxx_qt(Task.classes['cxx']):
def runnable_status(self):
ret = waflib.Tools.cxx.cxx.runnable_status(self)
ret = Task.classes['cxx'].runnable_status(self)
if ret != Task.ASK_LATER and not getattr(self, 'moc_done', None):
try:
@ -84,6 +84,7 @@ class cxx_qt(waflib.Tools.cxx.cxx):
else:
link.set_run_after(cxxtsk)
link.inputs.extend(cxxtsk.outputs)
link.inputs.sort(key=lambda x: x.abspath())
self.moc_done = True