[pypy-svn] r17391 - pypy/dist/pypy/translator/goal

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Sep 8 21:16:48 CEST 2005


Author: ericvrp
Date: Thu Sep  8 21:16:48 2005
New Revision: 17391

Modified:
   pypy/dist/pypy/translator/goal/translate_pypy_new.py
Log:
fix to generate correct .exe for non-c backends also


Modified: pypy/dist/pypy/translator/goal/translate_pypy_new.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate_pypy_new.py	(original)
+++ pypy/dist/pypy/translator/goal/translate_pypy_new.py	Thu Sep  8 21:16:48 2005
@@ -437,10 +437,10 @@
                         'gcpolicy' : gcpolicy}
             c_entry_point = t.compile(options1.backend, **keywords)
                              
-            if standalone and options1.backend == 'c': # xxx fragile and messy
+            if standalone: # xxx fragile and messy
                 import shutil
                 exename = mkexename(c_entry_point)
-                newexename = mkexename('./pypy-c')
+                newexename = mkexename('./pypy-' + options1.backend)
                 shutil.copy(exename, newexename)
                 c_entry_point = newexename
             update_usession_dir()



More information about the Pypy-commit mailing list