Skip to content

Commit cb36955

Browse files
committed
gen_compile_commands: lower the entry count threshold
Running gen_compile_commands.py after building the kernel with allnoconfig gave this: $ ./scripts/gen_compile_commands.py WARNING: Found 449 entries. Have you compiled the kernel? Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 26c4c71 commit cb36955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gen_compile_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
_VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
2222

2323
# A kernel build generally has over 2000 entries in its compile_commands.json
24-
# database. If this code finds 500 or fewer, then warn the user that they might
24+
# database. If this code finds 300 or fewer, then warn the user that they might
2525
# not have all the .cmd files, and they might need to compile the kernel.
26-
_LOW_COUNT_THRESHOLD = 500
26+
_LOW_COUNT_THRESHOLD = 300
2727

2828

2929
def parse_arguments():

0 commit comments

Comments
 (0)