Skip to content

Refactor compiledb implementation#1230

Merged
dsnopek merged 1 commit into
godotengine:masterfrom
adamscott:compiledb-alias
Oct 19, 2023
Merged

Refactor compiledb implementation#1230
dsnopek merged 1 commit into
godotengine:masterfrom
adamscott:compiledb-alias

Conversation

@adamscott

Copy link
Copy Markdown
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

@nlupugla nlupugla left a comment

Copy link
Copy Markdown

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

dsnopek commented Sep 21, 2023

Copy link
Copy Markdown
Collaborator

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.

Comment thread tools/godotcpp.py Outdated

@Faless Faless left a comment

Copy link
Copy Markdown
Contributor

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

Repiteo commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@dsnopek dsnopek left a comment

Copy link
Copy Markdown
Collaborator

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
@dsnopek

dsnopek commented Oct 23, 2023

Copy link
Copy Markdown
Collaborator

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