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
1 changed files with 1 additions and 0 deletions

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()