diff options
| author | Masahiro Yamada <[email protected]> | 2020-08-22 14:56:09 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2020-08-26 15:44:33 +0000 |
| commit | 8a685db32f2b3495c91efab6e9462c2fd934778f (patch) | |
| tree | 19cf8b56d9cca1837b7d4f42c9d6593f9f54e224 /scripts/clang-tools/run-clang-tools.py | |
| parent | kbuild: hide commands to run Kconfig, and show short log for syncconfig (diff) | |
| download | kernel-8a685db32f2b3495c91efab6e9462c2fd934778f.tar.gz kernel-8a685db32f2b3495c91efab6e9462c2fd934778f.zip | |
gen_compile_commands: parse only the first line of .*.cmd files
After the allmodconfig build, this script takes about 5 sec on my
machine. Most of the run-time is consumed for needless regex matching.
We know the format of .*.cmd file; the first line is the build command.
There is no need to parse the rest.
With this optimization, now it runs 4 times faster.
Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Tested-by: Nick Desaulniers <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions
