[Scons-users] CPPDEFINES Unexpected Behavior

Managan, Rob managan1 at llnl.gov
Wed Apr 10 15:58:10 EDT 2013


Dirk,

That is close, it results in " -Ddef1= " on the command line.

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan email managan at llnl.gov
LLNL phone: 925-423-0903
P.O. Box 808, L-095 FAX: 925-422-3389
Livermore, CA 94551-0808





On 4/10/13 12:47 PM, "Dirk Bächle" <tshortik at gmx.de> wrote:


>Sorry,

>

>> I'm not sure what the desired behaviour is, but this is what the code

>> does: the replacement methods for the CPPDEFINES variable expect the

>> prefix and suffix to be of type str(ing). That's what the function

>> _concat_ixes(prefix, list, suffix, env) in Defaults.py tries to ensure

>> by wrapping the prefix/suffix arguments in a str() call each. And this

>> returns the 'None' in your example.

>>

>

>but I followed the wrong track. It's not _concat_ixes (that's the one

>for prefix/suffix, which you are not interested in), but

>processDefines(). Here the key/value pairs of the dict get wrapped with

>str() in the same manner, so it would still be interesting to know whether

>

>>

>> newdefs = {'def1' : ''}

>>

>helps.

>

>Dirk

>

>

>_______________________________________________

>Scons-users mailing list

>Scons-users at scons.org

>http://four.pairlist.net/mailman/listinfo/scons-users




More information about the Scons-users mailing list