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

Refactor compiledb implementation #1230

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

adamscott
Copy link
Member

This comment enables the possibility to build the "compile_commands.json" file by only using scons -Q compiledb. No need to use the argument compiledb=yes.

And when using the compiledb=yes, it will create a "compiled_commands.json" automatically.

@adamscott adamscott requested a review from a team as a code owner September 4, 2023 19:04
@adamscott adamscott added topic:buildsystem Related to the buildsystem or CI setup cherrypick:4.1 labels Sep 4, 2023
@adamscott adamscott added this to the 4.x milestone Sep 4, 2023
Copy link

@nlupugla nlupugla left a comment

Choose a reason for hiding this comment

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

Tested on my build and it works great!

@dsnopek
Copy link
Collaborator

dsnopek commented Sep 21, 2023

Discussed at the GDExtension meeting, and we think this makes sense! But we're going to save this one to discuss again later, when we plan to have a special meeting to tackle a lot of build system issues at once.

tools/godotcpp.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Faless Faless left a comment

Choose a reason for hiding this comment

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

@dsnopek and I discussed this and looks good.
See the comment above for a suggestion.

@Repiteo
Copy link
Contributor

Repiteo commented Oct 18, 2023

Not sure if anyone else has this experience, but this PR has been the only way I've gotten compile_commands.json to generate at all, even with the old method

This comment enables the possibility to build the "compile_commands.json"
file by only using `scons -Q compiledb`. No need to use the argument
`compiledb=yes`.

And when using the `compiledb=yes`, it will create a
"compiled_commands.json" automatically.
@adamscott
Copy link
Member Author

I implemented @Faless' suggestion.
I tested again my PR just to make sure and everything works just fine! I think it's ready to merge!
(just in time for my talk at the GodotCon!)

@adamscott adamscott modified the milestones: 4.x, 4.2 Oct 19, 2023
Copy link
Collaborator

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

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

Thanks!

@dsnopek dsnopek merged commit 7a260f5 into godotengine:master Oct 19, 2023
12 checks passed
@dsnopek
Copy link
Collaborator

dsnopek commented Oct 23, 2023

Cherry-picked for 4.1 in PR #1281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:buildsystem Related to the buildsystem or CI setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants