mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
swig: c(xx) task inherits weight from swig itself
If any weights (i.e. `weight` or `tree_weight`) are set on a swig task then those weights are passed on to the task created to compile the wrapper generated by swig.
This commit is contained in:
parent
c80722685c
commit
a4b0b675cf
@ -111,6 +111,13 @@ def swig_c(self):
|
||||
c_tsk = self.generator.c_hook(out_node)
|
||||
|
||||
c_tsk.set_run_after(self)
|
||||
|
||||
# transfer weights from swig task to c task
|
||||
if getattr(self, 'weight', None):
|
||||
c_tsk.weight = self.weight
|
||||
if getattr(self, 'tree_weight', None):
|
||||
c_tsk.tree_weight = self.tree_weight
|
||||
|
||||
try:
|
||||
self.more_tasks.append(c_tsk)
|
||||
except AttributeError:
|
||||
|
Loading…
Reference in New Issue
Block a user