[pypy-svn] r16097 - pypy/dist/pypy/translator/tool

tismer at codespeak.net tismer at codespeak.net
Tue Aug 16 11:57:05 CEST 2005


Author: tismer
Date: Tue Aug 16 11:57:03 2005
New Revision: 16097

Modified:
   pypy/dist/pypy/translator/tool/cbuild.py
Log:
small correction to my patch

Modified: pypy/dist/pypy/translator/tool/cbuild.py
==============================================================================
--- pypy/dist/pypy/translator/tool/cbuild.py	(original)
+++ pypy/dist/pypy/translator/tool/cbuild.py	Tue Aug 16 11:57:03 2005
@@ -229,10 +229,10 @@
 def build_executable(cfilenames, outputfilename=None, include_dirs=None,
                      libraries=[]):
     from distutils.ccompiler import new_compiler 
+    ext = ''
+    if sys.platform != 'win32': 
+        libraries.append('m')
     if outputfilename is None:
-        ext = ''
-        if sys.platform != 'win32': 
-            libraries.append('m')
         outputfilename = py.path.local(cfilenames[0]).new(ext=ext)
     else: 
         outputfilename = py.path.local(outputfilename) 



More information about the Pypy-commit mailing list