'How to use compilation-database for build?

I find tons of descriptions how to generate a compilation database (especially compile_commands.json) for a C/C++ project. But the other way round: how to use it as input for a build via make or similar from command line?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source