vscode-linux-kernel
vscode-linux-kernel copied to clipboard
Re-generate compile_commands.json incrementally
Generate a .json file for every .cmd.* file, then join them. So the Python script will only handle one .cmd.* at a time, and a Makefile will run the script for all files.
- .json files for unchanged .cmd files won't be regenerated needlessly.
- make's globbing/wildcard is probably faster than Python's one.
- this will be closer to something that can be integrated into Kbuild
- Probably it'll be possible to trick kernel's Makefile to include/recursively call this Makefile (and thus automatically pass correct O=..., for example)