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

Improve priority support in swig.py

This commit is contained in:
Thomas Nagy 2018-03-26 21:03:26 +02:00
parent 259b5468b8
commit 592136739b
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -111,12 +111,10 @@ def swig_c(self):
c_tsk = self.generator.c_hook(out_node)
c_tsk.set_run_after(self)
# FIXME
c_tsk.prio_order = self.prio_order
ge = self.generator.bld.producer
ge.outstanding.append(c_tsk)
ge.total += 1
try:
self.more_tasks.append(c_tsk)
except AttributeError:
self.more_tasks = [c_tsk]
try:
ltask = self.generator.link_task
@ -127,8 +125,8 @@ def swig_c(self):
# setting input nodes does not declare the build order
# because the build already started
ltask.inputs.append(c_tsk.outputs[0])
# set the build order after the build started:
ge.revdeps[c_tsk].add(ltask)
# enable priorities so that swig targets do not run last
self.generator.bld.producer.revdeps[c_tsk].add(ltask)
self.outputs.append(out_node)