Re: persistent but local tweaks to a node's environment

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CH3a2K6egN4h=0ximBWiuUhkKhKc70inEyVAn8jL22n5w@mail.gmail.com>
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 <[email protected]>
wrote:

>
>
> On Sun, Jul 25, 2021 at 11:05 AM Gabe Black <[email protected]> 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
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
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.