Fix bug in the clang_compilation_database tool when no C compiler is loaded

This commit is contained in:
Simon Guillot 2017-03-14 10:55:39 +01:00 committed by Thomas Nagy
parent 90ab7a2ae9
commit 069d5dca2e
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ def write_compilation_database(ctx):
# This will make sure compile_commands.json is always fully up to date.
# Previously you could end up with a partial compile_commands.json if the build failed.
for x in ('c', 'cxx'):
if x not in Task.classes:
continue
t = Task.classes[x]
def runnable_status(self):