logoalt Hacker News

wakawaka2810/12/20241 replyview on HN

The only thing I know that uses Ninja is CMake and I'm sure CMake does not require Ninja to generate the database.


Replies

jchw10/12/2024

The most obvious example is the build system of Chromium, which uses gn. They do have a wrapper script to actually generate the compile_commands.json file, but it's just a thin wrapper around Ninja's built-in capabilities. (I'm not sure that CMake's isn't, on that note; I'm pretty sure it's ability to build the database is in fact dependent on which generator you're using.)

show 1 reply