Re: building targets with the same SConstruct but with small diff

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-efc65123-8332-4f24-9957-8aff5f179e64-1648067641099@3c-app-mailcom-bs02>
> Sent: Wednesday, March 23, 2022 at 3:03 PM
> From: "Mats Wichmann" <[email protected]>
> To: [email protected]
> Subject: Re: [Scons-users] building targets with the same SConstruct but with small diff
>
> On 3/23/22 07:00, daggs wrote:
> > Greetings Mads,
> >
> >> Sent: Wednesday, March 23, 2022 at 2:53 PM
> >> From: "Mats Wichmann" <[email protected]>
> >> To: [email protected]
> >> Subject: Re: [Scons-users] building targets with the same SConstruct but with small diff
> >>
> >> On 3/23/22 06:26, daggs wrote:
> >>> Greetings,
> >>>
> >>> I need to call a SConscript file twice but with a small diff in compilation flags. the resulting target should be saved in different locations.
> >>> is there a recommend way to achieve that?
> >>
> >> https://scons-cookbook.readthedocs.io/en/latest/#building-multiple-variants-from-the-same-source
> >>
> >> The example is admittedly brief and not the only way to structure such a
> >> setup, but should get you started.
> >
> > thanks for the pointer, I'll start there.
>
> More complete treatment of variant directories in the User Guide:
>
> https://scons.org/doc/production/HTML/scons-user.html#chap-separate
I was able to create an example project which does exactly what I need.

Thanks.
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.