From ab82dd8b8b15f61c1930848703b198e59cca6497 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sun, 16 Feb 2014 23:42:47 +0100 Subject: [PATCH] possible race when stripping libraries --- playground/strip/strip.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playground/strip/strip.py b/playground/strip/strip.py index 3e7662bd..a6c4549e 100644 --- a/playground/strip/strip.py +++ b/playground/strip/strip.py @@ -21,12 +21,13 @@ from waflib import Task, TaskGen class strip(Task.Task): run_str = '${STRIP} ${SRC}' color = 'BLUE' + after = ['cprogram', 'cxxprogram', 'cshlib', 'cxxshlib', 'fcprogram', 'fcshlib'] @TaskGen.feature('strip') @TaskGen.after('apply_link') def add_strip_task(self): try: link_task = self.link_task - except: + except AttributeError: return - tsk = self.create_task('strip', self.link_task.outputs[0]) + self.create_task('strip', link_task.outputs[0])