automake
[Top][All Lists]
Advanced

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

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


From: Ilya Basin
Subject: Re: Make autoconf and automake generate compile_commands.json for integration with other build systems and IDEs
Date: Sat, 28 Jul 2018 16:41:22 +0300

https://gist.github.com/basinilya/9320b806efacece314c2ad16524993c1

сб, 28 июл. 2018 г., 15:27 Doron Behar <address@hidden>:

> 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?
>
>


reply via email to

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