[Scons-users] CPPDEFINES Unexpected Behavior

Dirk Bächle tshortik at gmx.de
Wed Apr 10 15:47:16 EDT 2013


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




More information about the Scons-users mailing list