[Scons-users] Ninja generator, compilation database issues
Bill Deegan
bill at baddogconsulting.com
Fri Aug 30 13:09:28 EDT 2024
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 <mats at wichmann.us> 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
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20240830/e0b7008a/attachment.htm>
More information about the Scons-users
mailing list