[Scons-users] persistent but local tweaks to a node's environment

Bill Deegan bill at baddogconsulting.com
Mon Jul 26 19:53:53 EDT 2021


It should do one level depth of substitution only for the variable which is
being set.

so
X="${X} -some-other-flags"
Should yield
X="whatever X was before the above plus -some-other-flags"

(I did a particularly deep dive on the subst logic last year with an eye
towards rewriting)


On Mon, Jul 26, 2021 at 4:06 PM Gary Oberbrunner <garyo at oberbrunner.com>
wrote:

>
>
> On Sun, Jul 25, 2021 at 11:05 AM Gabe Black <gabe.black at gmail.com> wrote:
>
>> ...
>> Related to this, I know you can override a variable using FOO='bar' in a
>> builder, but is there a way to Append? I usually want to, for instance, add
>> extra compiler flags without clobbering everything that's already there.
>> That's what I was *hoping* to achieve with the CCFLAGS='${CCFLAGS} ...',
>> but I don't think that's what it ended up doing!
>>
>
> I did some work toward this back in the day, but didn't ever come up with
> a decent syntax for how to specify that an override should append (or
> remove, or update...) But I did think that the form of override you're
> showing above should delay substitution until used. I might not be
> remembering it right though.
>
> --
> Gary
> _______________________________________________
> 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/20210726/81ad4b6e/attachment.htm>


More information about the Scons-users mailing list