Make the configuration cache more accurate #2251

This commit is contained in:
Thomas Nagy 2019-07-08 19:23:50 +02:00
parent fbe75085c6
commit 88fa1fab83
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 5 additions and 6 deletions

View File

@ -537,12 +537,11 @@ def run_build(self, *k, **kw):
"""
buf = []
for key in sorted(kw.keys()):
if key != 'env':
v = kw[key]
if hasattr(v, '__call__'):
buf.append(Utils.h_fun(v))
else:
buf.append(str(v))
v = kw[key]
if hasattr(v, '__call__'):
buf.append(Utils.h_fun(v))
else:
buf.append(str(v))
h = Utils.h_list(buf)
dir = self.bldnode.abspath() + os.sep + (not Utils.is_win32 and '.' or '') + 'conf_check_' + Utils.to_hex(h)