[Scons-users] CPPDEFINES Unexpected Behavior
Gary Oberbrunner
garyo at oberbrunner.com
Thu Apr 11 02:11:21 EDT 2013
On Wed, Apr 10, 2013 at 5:13 PM, Evan Driscoll <driscoll at cs.wisc.edu> 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.)
>
I agree with you all here. The above looks like the proper behavior.
Please submit a bug report or better yet a patch. There are tests for
this which should be extended.
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130411/4ac8c065/attachment.htm>
More information about the Scons-users
mailing list