Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-generate compile_commands.json incrementally #6

Open
amezin opened this issue Oct 30, 2020 · 0 comments
Open

Re-generate compile_commands.json incrementally #6

amezin opened this issue Oct 30, 2020 · 0 comments
Assignees

Comments

@amezin
Copy link
Owner

amezin commented Oct 30, 2020

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.

  1. .json files for unchanged .cmd files won't be regenerated needlessly.
  2. make's globbing/wildcard is probably faster than Python's one.
  3. this will be closer to something that can be integrated into Kbuild
  4. Probably it'll be possible to trick kernel's Makefile to include/recursively call this Makefile (and thus automatically pass correct O=..., for example)
@amezin amezin self-assigned this Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant