[Scons-users] Builder or Action bug Scons v2.3.0
Dirk Bächle
tshortik at gmx.de
Mon Jan 18 16:32:45 EST 2016
Hi Dan,
On 18.01.2016 16:47, Dan McNaul wrote:
> I think I found a bug in v2.3.0. I installed v2.4.1 to test this case, but
> v2.4.1 doesn't like any of my SConscripts and never gets to the build step.
> I have too many SConscripts to investigate v2.4.1's issues, so I wasn't able
> to run a regression test. All the later 2.3 versions (v2.3.[1-4]) have bugs
> in them that prevent code from building, so I can't regression test those
> versions either.
>
I inspected your setup and there is no bug. The behaviour you see is expected and will show up in any SCons version. There is a
fundamental concept for you to understand here. Executing, or calling, a Builder *doesn't* immediately execute its Action(s).
That's why the last assignment to your "lname=" wins. It's the value of the environment variable *after* parsing all
SConscripts/SConstructs, and while building stuff.
What you're actually looking for is an Action Generator, see the UserGuide at http://scons.org/doc/production/HTML/scons-user.html ,
sect. 18.5 "Builders That Create Actions Using a Generator".
If you need concrete help with this, just let us know...
Best regards,
Dirk
More information about the Scons-users
mailing list