[pypy-svn] r49171 - pypy/dist/pypy/translator/llvm

fijal at codespeak.net fijal at codespeak.net
Mon Nov 26 19:45:12 CET 2007


Author: fijal
Date: Mon Nov 26 19:45:12 2007
New Revision: 49171

Modified:
   pypy/dist/pypy/translator/llvm/externs2ll.py
Log:
Test still explodes, but now I don't understand why.


Modified: pypy/dist/pypy/translator/llvm/externs2ll.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/externs2ll.py	(original)
+++ pypy/dist/pypy/translator/llvm/externs2ll.py	Mon Nov 26 19:45:12 2007
@@ -129,10 +129,12 @@
     # ask gcpolicy for any code needed
     ccode.append('%s' % db.gcpolicy.genextern_code())
 
+    ccode.append("#define PYPY_NOT_MAIN_FILE")
     # ask rffi for includes/source
     s = StringIO()
     eci.write_c_header(s)
     ccode.append(s.getvalue())
+    ccode.append("#undef PYPY_NOT_MAIN_FILE")
     
     ccode.append('')
 



More information about the Pypy-commit mailing list