Kyle,

This should go to the users mailing list.
The dev list is for development of SCons itself and not for the use of
SCons..


On Thu, Nov 1, 2012 at 3:56 PM, Strand, Kyle J <kyle.str...@beckman.com>wrote:

>  I think this is a bug, but I might just be using env.Replace
> incorrectly, so if someone could let me know what they think I'd appreciate
> it. I find that variables in my LINKCOMSTR aren't always be properly
> substituted. For instance, if I define an environment as follows:
>
> env = Environment(LINKCOMSTR = "Linking... ${TARGET.file}",)
> env.Replace(LINKCOMSTR = '${LINKCOM}')
>

Wouldn't:
env.Replace(LINKCOMSTR='$LINKCOM')
work?


>
> ....and then I build targets with that environment, I see the following
> output:
>
> ${TEMPFILE("$LINK $LINKFLAGS /OUT:$TARGET.windows $_LIBDIRFLAGS $_LIBFLAGS
> $_PDB $SOURCES.windows")}
>
> (This is on a Windows machine using MSVC.) In other words, only one level
> of substitution is done on $LINKCOM, but $LINKCOM itself contains other
> variables which are not substituted out before printing. The correct
> command is executed, however.
>
> It also appears that there's the same problem with SHLINKCOMSTR, but it
> does NOT appear to be a problem with other environment variables
> (CXXCOMSTR, etc).
>
_______________________________________________
Scons-dev mailing list
Scons-dev@scons.org
http://two.pairlist.net/mailman/listinfo/scons-dev

Reply via email to