Re: Ninja generator, compilation database issues

Bill Deegan <[email protected]> Fri, 30 Aug 2024 10:09:28 -0700
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CFzDjW2HHG-7OkYt=VgNAHYmzyURLMawoUyHP5S=qvSCQ@mail.gmail.com>
Any chance you can create a simple reproducer?
As in 1 (or just a few dummy source files) and a SConstruct?

Thanks,
Bill
SCons Project Manager.

On Fri, Aug 30, 2024 at 6:39 AM Mats Wichmann <[email protected]> wrote:

> On 8/30/24 02:38, Jelic, Nikola wrote:
> > Greetings,
> >
> > We are using SCons' Ninja generator to upgrade the existing project. We
> > are also using the compilation database extension in SCons, but we have
> > reached some interesting limitations when we try to use Ninja generator.
> > In short, if "compile_commands.json" is requested to be anywhere except
> > the root of the project (which is not our case), we face one or all of
> > these issues:
> >
> >   *
> >     Duplicate Ninja targets
> >   *
> >     A hanging task for generating the compilation database on a
> >     different location
> >
> > I have a small WIP patch that resolves some of these issues, but I
> > wanted to start a discussion and see what the best approach would be.
>
> Can continue discussion here, open an issue (or discussion) on GitHub,
> or even discuss on the Discord channel.
>
> >     The location and the name of the compilation database file should be
> >     completely independent of the project structure
>
> There shouldn't be, and I don't at a quick glance see any reason in the
> code for why putting the database somewhere else would not work.  I do
> note that the test suite only checks names in the project topdir, and in
> a variant directory (which "looks like" in the topdir although it's
> relocated).
>
> We don't have anything that tests the compilation DB and ninja together.
>
>
>
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users