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

Use the do_ci.sh script for refreshing the compilation database #37668

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

therealak12
Copy link
Contributor

@therealak12 therealak12 commented Dec 15, 2024

Commit Message: use do_ci.sh for refreshing the compilation db

Additional Description:
Details are explained in this Github comment.

When refreshing the compilation database, the proto_format.sh and gen_compilation_database.py scripts require the --config=clang and --config=libc++ flags. The do_ci.sh script provides a refresh_compdb subcommand that automatically includes these flags.

This PR modifies the .vscode/tasks.json file to use ci/do_ci.sh refresh_compdb instead of refresh_compdb.sh to refresh the compilation database used by VSCode.

Risk Level: Low

Signed-off-by: Ahmad Karimi <[email protected]>
@therealak12 therealak12 reopened this Dec 15, 2024
@adisuissa
Copy link
Contributor

/assign @phlax

@phlax
Copy link
Member

phlax commented Dec 16, 2024

im gonna hand this over to @wbpcode as he has more context here (and cant test etc)

Copy link
Member

@wbpcode wbpcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But let's me to take a try when I get a little free time. Thanks.

@phlax
Copy link
Member

phlax commented Dec 18, 2024

/wait

@therealak12
Copy link
Contributor Author

The change should be applied anywhere we call the proto_format.sh script, for example, the pre-push git hook in the support/hooks directory.

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.

4 participants