[Scons-users] CPPDEFINES Unexpected Behavior

Dirk Bächle tshortik at gmx.de
Wed Apr 10 18:25:13 EDT 2013


Hi Evan,

On 10.04.2013 23:13, Evan Driscoll wrote:

> On 04/10/2013 02:48 PM, Strand, Kyle J wrote:> No, it doesn't, and it

> shouldn't be expected to. That produces the def

>> string "def1=", which, I suppose, might be better than "def1=None",

>> but still isn't correct; it should simply be "def1".

> FWIW, I basically always use CPPDEFINES as a dictionary, and the

> behavior that Kyle wants is what I'd expect. In fact, I'm rather

> surprised that I haven't exercised that functionality, as I thought I

> had. :-)

>

> I'd expect something like:

> env['CPPDEFINES'] = { 'A': None, 'B': 1, 'C': 'Foo' }

> to produce the command lines

> ... -DA -DB=1 -DC=Foo

> ... /DA /DB=1 /DC=Foo

> as appropriate for the platform. (Alternatively, it could say -DA=1 and

> /DA=1.)


thanks for chiming in...I'd declare this as a bug then. I'll open an
issue in the bug tracker and then create a test case and patch for it,
such that SCons' behaviour reflects the description in the MAN page.

@Kyle: Thanks a lot for reporting this.

Best regards,

Dirk




More information about the Scons-users mailing list