[Scons-dev] Tool initialization is called twice

Gary Oberbrunner garyo at oberbrunner.com
Wed May 28 08:40:30 EDT 2014


On Wed, May 28, 2014 at 3:39 AM, anatoly techtonik <techtonik at gmail.com>wrote:

> Hi,
>
> I found that SCons calls tool initialization twice for this simple
> SConstruct:
>
>     env = Environment()
>     env.Program(target='flite', source=[])
>

Right, this is one of the things I want to address with the toolchain
revamp.  DefaultEnvironment is constructed before the SConstruct is read,
and all the default tools are detected there.

Environment() is distinct from DefaultEnvironment(); DefaultEnvironment is
_only_ used for plain Object(), Program() etc. calls.  This is by design.
 Environment() does not inherit changes in DefaultEnvironment().

-- 
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20140528/8179c6ab/attachment.html>


More information about the Scons-dev mailing list