[Scons-users] building targets with the same SConstruct but with small diff

Bill Deegan bill at baddogconsulting.com
Wed Mar 23 11:05:04 EDT 2022


Dagg,

That's a pretty common desire.
For things like building release/debug/profile from same sources into
different directories.
And exactly what Variant dirs are meant for.
-Bill

On Wed, Mar 23, 2022 at 6:03 AM Mats Wichmann <mats at wichmann.us> wrote:

> On 3/23/22 07:00, daggs wrote:
> > Greetings Mads,
> >
> >> Sent: Wednesday, March 23, 2022 at 2:53 PM
> >> From: "Mats Wichmann" <mats at wichmann.us>
> >> To: scons-users at scons.org
> >> 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
>
>
> _______________________________________________
> 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/20220323/c0c8af35/attachment-0001.htm>


More information about the Scons-users mailing list