Skip to content

Commit ec783c7

Browse files
KortanZmasahir0y
authored andcommitted
gen_compile_commands: fix missing 'sys' package
We need to import the 'sys' package since the script has called sys.exit() method. Fixes: 6ad7cbc ("Makefile: Add clang-tidy and static analyzer support to makefile") Signed-off-by: Kortan <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent aa0f5ea commit ec783c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/clang-tools/gen_compile_commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import re
1515
import subprocess
16+
import sys
1617

1718
_DEFAULT_OUTPUT = 'compile_commands.json'
1819
_DEFAULT_LOG_LEVEL = 'WARNING'

0 commit comments

Comments
 (0)