Skip to content

Commit

Permalink
gen_compile_commands: lower the entry count threshold
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masahir0y committed Jul 27, 2019
1 parent 26c4c71 commit cb36955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/gen_compile_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
_VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']

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


def parse_arguments():
Expand Down

0 comments on commit cb36955

Please sign in to comment.