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

Produce a compilation DB for the kernel build. #1720

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

qwattash
Copy link
Contributor

Currently this is unconditional, it is certainly possible to add a switch to enable it but the changes are fairly simple and should not impact build speed.

Produce the compile_commands.json file in the kernel build directory, the file
can be used to determine all source files (not headers) built for each kernel
configuration.
This is currently only supported for the clang compiler.
@qwattash qwattash changed the base branch from main to dev June 20, 2023 12:02
@arichardson
Copy link
Member

Maybe this should go upstream instead?

@qwattash
Copy link
Contributor Author

Maybe this should go upstream instead?

I can easily do that if you think it is acceptable upstream.

@arichardson
Copy link
Member

Maybe this should go upstream instead?

I can easily do that if you think it is acceptable upstream.

I don't see why not, although it might need to be guarded by an option so people don't complain about (even) slower builds.

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

Successfully merging this pull request may close these issues.

2 participants