2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Improve clang_compilation_database interaction with wafcache

This commit is contained in:
Thomas Nagy 2020-12-15 13:07:47 +01:00
parent 6ed66ce90b
commit a74d40a505

View File

@ -105,6 +105,7 @@ class ClangDbContext(Build.BuildContext):
for tsk in lst:
tup = tuple(y for y in [Task.classes.get(x) for x in ('c', 'cxx')] if y)
if isinstance(tsk, tup):
tsk.nocache = True
old_exec = tsk.exec_command
tsk.exec_command = exec_command
tsk.run()