[Scons-users] Remove a macro from CPPDEFINES list
Sisira Jayasinghe
sisirajaya at gmail.com
Sat Nov 10 20:46:48 EST 2012
Hi Bill:
Thank you so much. It worked!
I am new to Scons and Python and working on converting a commercial CAD/CAE
software package to build on SCONS on NT and Linux. To give you an ideas I
have created over 3500 Sconscript files so far.
So please do not be surprised to hear from me again.
Sisira
From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org]
On Behalf Of William Deegan
Sent: Saturday, November 10, 2012 2:49 PM
To: SCons users mailing list
Subject: Re: [Scons-users] Remove a macro from CPPDEFINES list
Sisira,
On Nov 10, 2012, at 4:54 AM, Sisira Jayasinghe <sisirajaya at gmail.com> wrote:
Hi:
The macro __STDC__ that gets defined in Sconstruct, but in certain source
folders that has to be undefined ( #undef or /U ). I cannot find an
Environment function to Remove it from CPPDEFINES list.
Please let me know how can I accomplish this.
SConstructs are just python.
env['CPPDEFINES'].remove('__STDC__')
Should do the trick.
(see: http://docs.python.org/2.7/library/stdtypes.html#typesseq-mutable )
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121110/9f7052f3/attachment.html>
More information about the Scons-users
mailing list