[pypy-svn] r7403 - pypy/trunk/src/pypy/translator

arigo at codespeak.net arigo at codespeak.net
Thu Nov 18 19:04:18 CET 2004


Author: arigo
Date: Thu Nov 18 19:04:08 2004
New Revision: 7403

Modified:
   pypy/trunk/src/pypy/translator/translator.py
Log:
Forgot to check this in.


Modified: pypy/trunk/src/pypy/translator/translator.py
==============================================================================
--- pypy/trunk/src/pypy/translator/translator.py	(original)
+++ pypy/trunk/src/pypy/translator/translator.py	Thu Nov 18 19:04:08 2004
@@ -221,7 +221,7 @@
         mod = make_module_from_pyxstring(name, udir, pyxcode)
         return getattr(mod, name)
 
-    def ccompile(self):
+    def ccompile(self, really_compile=True):
         """Returns compiled function, compiled using the C generator.
         """
         from pypy.tool.udir import udir
@@ -230,6 +230,8 @@
         f = cfile.open('w')
         GenC(f, self, name)
         f.close()
+        if not really_compile:
+            return cfile
         mod = make_module_from_c(cfile)
         return getattr(mod, self.entrypoint.func_name)
 



More information about the Pypy-commit mailing list