Make clang_compilation_database compatible with variants

In the current implementation if a project is using
build variants it's not possible to use the clang_compilation_database
plugin because it strips the variant information from the build object.
This commit is contained in:
Federico Giovanardi 2021-07-15 10:57:23 +02:00
parent 3536dfecf8
commit 23df45272c
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ def patch_execute():
Invoke clangdb command before build
"""
if self.cmd.startswith('build'):
Scripting.run_command('clangdb')
Scripting.run_command(self.cmd.replace('build','clangdb'))
old_execute_build(self)