[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make autoconf and automake generate compile_commands.json for integr

From: Doron Behar
Subject: Re: Make autoconf and automake generate compile_commands.json for integration with other build systems and IDEs
Date: Sat, 28 Jul 2018 18:59:30 +0300
User-agent: NeoMutt/20180716

I'm aware of that. Plus, the author of `Bear` is the same author of
`scan-build`. I've had a discussion with him about the duplicity of
those two tools which seem to be doing the same thing. I just think that
such a tool should be an official part of `make`.

I've sent an mail to the Make mailing list about it.

On Sat, Jul 28, 2018 at 05:48:31PM +0200, immanuel litzroth wrote:
> This is a tool that generates a compilation database from a make file:
> i
> 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` ( Could you
> > please share it with us?
> >
> >

reply via email to

[Prev in Thread] Current Thread [Next in Thread]