summaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-07-24 01:34:35 +0300
committerMark Brown <broonie@kernel.org>2023-07-24 01:34:35 +0300
commit447281e71527080244ed1fa07e84a9d4e0654616 (patch)
tree58f57b177501db3a12da06cbe34a3a3ee412e97e /scripts/clang-tools/gen_compile_commands.py
parent79232ec0ee0dfd11f0070a63d9307480ac39f87d (diff)
parent6eaae198076080886b9e7d57f4ae06fa782f90ef (diff)
downloadlinux-447281e71527080244ed1fa07e84a9d4e0654616.tar.xz
regulator: Merge up fixes from mainline
There's several things here that will really help my CI.
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
-rwxr-xr-xscripts/clang-tools/gen_compile_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py
index 15ba56527acd..a84cc5737c2c 100755
--- a/scripts/clang-tools/gen_compile_commands.py
+++ b/scripts/clang-tools/gen_compile_commands.py
@@ -19,7 +19,7 @@ _DEFAULT_OUTPUT = 'compile_commands.json'
_DEFAULT_LOG_LEVEL = 'WARNING'
_FILENAME_PATTERN = r'^\..*\.cmd$'
-_LINE_PATTERN = r'^savedcmd_[^ ]*\.o := (.* )([^ ]*\.c) *(;|$)'
+_LINE_PATTERN = r'^savedcmd_[^ ]*\.o := (.* )([^ ]*\.[cS]) *(;|$)'
_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.