logoalt Hacker News

wakawaka2810/12/20242 repliesview on HN

Is this really a major problem? Is there any tool that supports generating the database without compiling? I think the answer to both of these is "no". In fact I can't even think of a reasonable case where it would be even a minor problem.


Replies

maccard10/12/2024

Ninja does it. Visual Studio does it.

> In fact I can't even think of a reasonable case where it would be even a minor problem.

On my last project, a build took 2+ hours on a 128 core threadripper. It wasn't every day that the lowest level stuff changed, but it was probably once a sprint or so. Waiting 2 hours for the compilation database to be ready isn't tenable. Rider and Visual Studio could generate a usable model of the project in 2-3 minutes.

show 1 reply
jchw10/12/2024

Ninja and CMake do. It's especially useful if you want a compilation database for a project that takes an extremely long time to build.

show 2 replies