From 1889619dd4ed0af229c787c4c5ffd502e2d4410f Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Fri, 30 May 2014 20:35:09 +0200 Subject: [PATCH] miscallenous enhancements - Issue 1450 --- waflib/extras/pch.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/waflib/extras/pch.py b/waflib/extras/pch.py index 8bfc5592..187b66d8 100644 --- a/waflib/extras/pch.py +++ b/waflib/extras/pch.py @@ -52,7 +52,7 @@ Note that precompiled header must have multiple inclusion guards. If the guards """ import os -from waflib import Task, TaskGen, Logs, Utils +from waflib import Task, TaskGen, Utils from waflib.Tools import c_preproc, cxx @@ -135,11 +135,14 @@ class gchx(Task.Task): ext_out=['.h'] def runnable_status(self): + try: + node_deps = self.generator.bld.node_deps[self.uid()] + except KeyError: + node_deps = [] ret = Task.Task.runnable_status(self) if ret == Task.SKIP_ME and self.env.CXX_NAME == 'clang': t = os.stat(self.outputs[0].abspath()).st_mtime - for n in self.inputs: + for n in self.inputs + node_deps: if os.stat(n.abspath()).st_mtime > t: return Task.RUN_ME return ret -