[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make autoconf and automake generate compile_commands.json for integr
Re: Make autoconf and automake generate compile_commands.json for integration with other build systems and IDEs
Sat, 28 Jul 2018 17:48:31 +0200
This is a tool that generates a compilation database from a make file:
On Sat, Jul 28, 2018 at 2:27 PM Doron Behar <address@hidden> wrote:
> On Tue, Jul 24, 2018 at 10:47:20PM +0300, Basin Ilya wrote:
> > Hi Doron.
> > The list of source files and resulting object files isn't known until
> `make` is launched. The IDE should be ready to support a constantly
> updating compilation database.
> > It is possible to create a wrapper program for GNU Make that will do the
> job. It won't be part of Make, you will have to install it separately. An
> IDE can be configured to run the wrapper instead of the real Make binary.
> > The wrapper can handle the shell commands executed by Make. For
> instance, it can pass these commands and other information to another
> component that will update the compilation database.
> > I have a script that stores the needed info in a binary format, but
> somebody has to write at least the part that reads the binary data from the
> standard input and converts it to JSON.
> I wonder how this script compares to the tool I mentioned called
> `scan-build` (https://github.com/neomutt/neomutt/issues/1014). Could you
> please share it with us?