Re: Ability to send callback for setting an Environment() variable..

Bill Deegan <bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org>
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <CAEyG4CHpwZXktJKnv37ECFE0BKwVHjbLEjc+0APj6Ft=B8y5_Q@mail.gmail.com>
If you set any env['XYZ'], a builder could set up a call back function to
get called when the value is changed.
So for example.
The tool sets env['CC'],  in the Environment() initialization, then the
user sets it explicitly.
The builder could have a function which would be called when it is set,
which would allow the builder to reconfigure the tool and/or other related
env variables.

-Bill

On Sat, Sep 3, 2016 at 11:32 PM, William Blevins <[email protected]>
wrote:

> Bill,
>
> You mean set CC to the directory rather than the gcc compiler? I'm not
> sure I understand your question.
>
> V/R,
> William
>
> On Thu, Sep 1, 2016 at 4:47 PM, Bill Deegan <bill-cJFiu+DHMVC5azolltMz9laTQe2KTcn/@public.gmane.org>
> wrote:
>
>> Greetings,
>>
>> Here's what I"m thinking.
>>
>> env['CC'] = '/my/path/to/custom/gcc/version'
>>
>> Would then call a method specified in the gcc tool.
>> This would allow (minimally) SCons to set the compiler version correctly.
>> For example:
>> env['GCCVERSION']='5.0.0'
>>
>> Thoughts?
>>
>> -Bill
>>
>> _______________________________________________
>> Scons-dev mailing list
>> [email protected]
>> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>>
>>
>
> _______________________________________________
> Scons-dev mailing list
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>

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