[pypy-commit] pypy default: fix for 31ecf3410703 running some tests

arigo pypy.commits at gmail.com
Tue Feb 21 02:50:39 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r90239:071247c0f952
Date: 2017-02-21 08:45 +0100
http://bitbucket.org/pypy/pypy/changeset/071247c0f952/

Log:	fix for 31ecf3410703 running some tests

diff --git a/rpython/translator/platform/posix.py b/rpython/translator/platform/posix.py
--- a/rpython/translator/platform/posix.py
+++ b/rpython/translator/platform/posix.py
@@ -51,11 +51,12 @@
         return ["-Wl,--export-dynamic"]
 
     def _link(self, cc, ofiles, link_args, standalone, exe_name):
-        self._exe_name = str(exe_name)
         args = [str(ofile) for ofile in ofiles] + link_args
         args += ['-o', str(exe_name)]
         if not standalone:
+            self._exe_name = str(exe_name)
             args = self._args_for_shared(args)
+            del self._exe_name      # remove, otherwise __eq__() fails
         self._execute_c_compiler(cc, args, exe_name,
                                  cwd=str(exe_name.dirpath()))
         return exe_name


More information about the pypy-commit mailing list