Re: finding out which env causes this error: Two different environments were specified for target

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-cfa0845f-4a25-46fe-9f02-da94db4a4e30-1648222823688@3c-app-mailcom-bs07>

> Sent: Friday, March 25, 2022 at 6:26 PM
> From: "Mats Wichmann" <[email protected]>
> To: "daggs" <[email protected]>
> Cc: "SCons users mailing list" <[email protected]>
> Subject: Re: [Scons-users] finding out which env causes this error: Two different environments were specified for target
>
> On 3/25/22 09:23, daggs wrote:
>
> > I do something like this:
> > for folder in [ a, b, c ]:
> >     for modes in [ y. z ]:
> >         export('mode')
> >         sconscript("src/" + folder + "/SConscript", variant_dir = "out/" + folder + "." + mode, duplicate = 0. export('env'))
> >
> > the issue occurs when I define InstallAs in folder b
> > if I remove it and add prints to the targets, I see them all ok.
>
> And what target is defined by the InstallAs call?
>
>

"tgt/" + folder + "." + mode + "/" + bin where bin differs for each folder
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.