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

fijal at codespeak.net fijal at codespeak.net
Tue Aug 26 11:46:16 CEST 2008


Author: fijal
Date: Tue Aug 26 11:46:15 2008
New Revision: 57623

Modified:
   pypy/dist/pypy/translator/tool/cbuild.py
Log:
always pass absolute paths to gcc calls, if possible


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 26 11:46:15 2008
@@ -600,9 +600,10 @@
 
             old = cfile.dirpath().chdir()
             try:
-                res = compiler.compile([cfile.basename],
+                res = compiler.compile([str(cfile)],
                                        include_dirs=self.eci.include_dirs,
-                                       extra_preargs=compile_extra)
+                                       extra_preargs=compile_extra,
+                                       output_dir=str(cfile.dirpath()))
                 assert len(res) == 1
                 cobjfile = py.path.local(res[0])
                 assert cobjfile.check()



More information about the Pypy-commit mailing list