Using suggested self.cmd.startswith approach

This commit is contained in:
Morten V. Pedersen 2020-01-02 14:47:39 +01:00
parent 23c533566f
commit 6467070a1f
1 changed files with 1 additions and 1 deletions

View File

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