[Numpy-svn] r4287 - branches/numpy.scons/numpy/distutils/scons

numpy-svn@scip... numpy-svn@scip...
Thu Oct 25 02:53:23 CDT 2007


Author: cdavid
Date: 2007-10-25 02:53:18 -0500 (Thu, 25 Oct 2007)
New Revision: 4287

Modified:
   branches/numpy.scons/numpy/distutils/scons/custom_checkers.py
Log:
Fix trivial error: actually use the cflags argument in custom checker.

Modified: branches/numpy.scons/numpy/distutils/scons/custom_checkers.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/custom_checkers.py	2007-10-25 07:49:49 UTC (rev 4286)
+++ branches/numpy.scons/numpy/distutils/scons/custom_checkers.py	2007-10-25 07:53:18 UTC (rev 4287)
@@ -36,7 +36,9 @@
     # Check headers are available
     #----------------------------
     oldCPPPATH = (env.has_key('CPPPATH') and deepcopy(env['CPPPATH'])) or []
+    oldCFLAGS = (env.has_key('CFLAGS') and deepcopy(env['CFLAGS'])) or []
     env.Append(CPPPATH = cpppath)
+    env.Append(CFLAGS = cflags)
     # XXX: handle context
     hcode = ['#include <%s>' % h for h in headers]
     # HACK: we add cpppath in the command of the source, to add dependency of
@@ -47,6 +49,7 @@
     ret = context.TryCompile(src, '.c')
     if not ret:
         env.Replace(CPPPATH = oldCPPPATH)
+        env.Replace(CFLAGS = oldCFLAGS)
         context.Result('Failed: %s include not found' % name)
         return 0
 



More information about the Numpy-svn mailing list