2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

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

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