[build2] Generation of compilation databases on Linux

luizfernandoafrabrito at gmail.com luizfernandoafrabrito at gmail.com
Sun Sep 23 19:15:16 UTC 2018


I'm amazed with build2 however I could not find how to generate a compilation database (compile_commands.json) on Linux.

I'm used to using a tool called Bear for this purpose. With Make I would use Bear like this:
$ bear make

I tried the following with build2:
$ bear b
but this generated an empty compile_commands.json

How can I generate a compilation database using build2?


More information about the users mailing list