diff options
author | Mark Brown <[email protected]> | 2021-09-20 15:56:58 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-09-21 15:23:35 +0100 |
commit | ffb1e76f4f32d2b8ea4189df0484980370476395 (patch) | |
tree | c62376eab558809973dc5b71806df07c388bfc1a /scripts/clang-tools/gen_compile_commands.py | |
parent | 2bab94090b01bc593d8bc25f68df41f198721173 (diff) | |
parent | e4e737bb5c170df6135a127739a9e6148ee3da82 (diff) |
Merge tag 'v5.15-rc2' into spi-5.15
Linux 5.15-rc2
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
-rwxr-xr-x | scripts/clang-tools/gen_compile_commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py index b7e9ecf16e56..1d1bde1fd45e 100755 --- a/scripts/clang-tools/gen_compile_commands.py +++ b/scripts/clang-tools/gen_compile_commands.py @@ -13,12 +13,13 @@ import logging import os import re import subprocess +import sys _DEFAULT_OUTPUT = 'compile_commands.json' _DEFAULT_LOG_LEVEL = 'WARNING' _FILENAME_PATTERN = r'^\..*\.cmd$' -_LINE_PATTERN = r'^cmd_[^ ]*\.o := (.* )([^ ]*\.c)$' +_LINE_PATTERN = r'^cmd_[^ ]*\.o := (.* )([^ ]*\.c) *(;|$)' _VALID_LOG_LEVELS = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'] # The tools/ directory adopts a different build system, and produces .cmd # files in a different format. Do not support it. |