0 votes

According to the following github issue https://github.com/godotengine/godot/issues/39883
while building godot from source, a compilation database (compile_commands.json) should be built with it. But I can't find it anywhere.
I'm not talking about the dry run that is mentioned in the issue itself, but more the fact, that it's mentioned that a database should be generated after fully building the whole project, which I did.
Anybody any insight on this? Thank you very much in advance.

Godot version v.3.2.4 custom build (github source 3.2 branch)
in Engine by (20 points)

1 Answer

+1 vote

Gonna answer my own question instead of removing it, should someone search for the same thing.

Even though it is commented in the SConstruct config file, that to generate the compilation database scons version 3.1.1+ is needed. That comment should not be taken for granted and even in the follow up configuration it is checked for scons version 4.0.0 before using the compiledb tool.

So long story short: Make sure you're environment does have at least scons version 4.0.0

by (20 points)

I opened a pull request to fix the comment: https://github.com/godotengine/godot/pull/45634

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.