mirror of https://gitlab.com/ita1024/waf.git
possible race when stripping libraries
This commit is contained in:
parent
2d709c24d5
commit
ab82dd8b8b
|
@ -21,12 +21,13 @@ from waflib import Task, TaskGen
|
||||||
class strip(Task.Task):
|
class strip(Task.Task):
|
||||||
run_str = '${STRIP} ${SRC}'
|
run_str = '${STRIP} ${SRC}'
|
||||||
color = 'BLUE'
|
color = 'BLUE'
|
||||||
|
after = ['cprogram', 'cxxprogram', 'cshlib', 'cxxshlib', 'fcprogram', 'fcshlib']
|
||||||
|
|
||||||
@TaskGen.feature('strip')
|
@TaskGen.feature('strip')
|
||||||
@TaskGen.after('apply_link')
|
@TaskGen.after('apply_link')
|
||||||
def add_strip_task(self):
|
def add_strip_task(self):
|
||||||
try:
|
try:
|
||||||
link_task = self.link_task
|
link_task = self.link_task
|
||||||
except:
|
except AttributeError:
|
||||||
return
|
return
|
||||||
tsk = self.create_task('strip', self.link_task.outputs[0])
|
self.create_task('strip', link_task.outputs[0])
|
||||||
|
|
Loading…
Reference in New Issue