[pypy-svn] r72830 - pypy/branch/fix-64/pypy/rpython/tool

arigo at codespeak.net arigo at codespeak.net
Thu Mar 25 17:56:09 CET 2010


Author: arigo
Date: Thu Mar 25 17:56:08 2010
New Revision: 72830

Modified:
   pypy/branch/fix-64/pypy/rpython/tool/rffi_platform.py
Log:
Ignoring CompilationErrors looks kinda good here.


Modified: pypy/branch/fix-64/pypy/rpython/tool/rffi_platform.py
==============================================================================
--- pypy/branch/fix-64/pypy/rpython/tool/rffi_platform.py	(original)
+++ pypy/branch/fix-64/pypy/rpython/tool/rffi_platform.py	Thu Mar 25 17:56:08 2010
@@ -522,9 +522,12 @@
                         FIELDLOOKUP = _PaddingDropFieldLookup(self.name,
                                                               staticfields,
                                                               fieldname)
-                    got = configure(CConfig)['FIELDLOOKUP']
-                    if got == 1:
-                        break     # found
+                    try:
+                        got = configure(CConfig)['FIELDLOOKUP']
+                        if got == 1:
+                            break     # found
+                    except CompilationError:
+                        pass
                     staticfields.insert(-1, None)
                 else:
                     raise Exception("could not determine the detailed field"



More information about the Pypy-commit mailing list