-
Notifications
You must be signed in to change notification settings - Fork 50
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
build: create compile_commands.json on build #370
Conversation
what does it do? |
it allows clangd lsp to work - compile_commands is a list of clang calls basically. |
@demo-exe put this into the commit message. |
Isn't such |
Depends on where you run cmake. |
after some discussion, added the file to gitignore, this allows for more diverse setups like semi-local builds |
@demo-exe "fix" … fix what? Can you merge your "fix" into the appropriate commit |
do not worry, in our flow everything gets squashed at merge :) |
adding compile_commands.json to gitignore and creating it with cmake enables editors to use LSP.
You can now symlink it to build dir or copy/modify it in repo root.