2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 03:39:53 +01:00

Limit fast_partial.py failures on configuration tests

This commit is contained in:
Thomas Nagy 2019-06-25 11:53:00 +02:00
parent 173f410e3f
commit b7a6114ac7

View File

@ -400,12 +400,17 @@ def is_stale(self):
Logs.debug('rev_use: must post %r because this is a clean build') Logs.debug('rev_use: must post %r because this is a clean build')
return True return True
# 3. check if the configuration changed # 3.a check if the configuration exists
if os.stat(self.bld.bldnode.find_node('c4che/build.config.py').abspath()).st_mtime > dbstat: cache_node = self.bld.bldnode.find_node('c4che/build.config.py')
if not cache_node:
return True
# 3.b check if the configuration changed
if os.stat(cache_node.abspath()).st_mtime > dbstat:
Logs.debug('rev_use: must post %r because the configuration has changed', self.name) Logs.debug('rev_use: must post %r because the configuration has changed', self.name)
return True return True
# 3.a any tstamp data? # 3.c any tstamp data?
try: try:
f_deps = self.bld.f_deps f_deps = self.bld.f_deps
except AttributeError: except AttributeError: