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

Gary Oberbrunner <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAFChFyia8_e4b+ZmfQcrSEGvvtLVmO=+qcw+tZ1iTKK-32JRPg@mail.gmail.com>
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
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.