[pypy-commit] pypy default: fix shared object suffix

mattip noreply at buildbot.pypy.org
Wed May 14 21:34:34 CEST 2014


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r71516:6933e9ded4de
Date: 2014-05-14 14:55 +0300
http://bitbucket.org/pypy/pypy/changeset/6933e9ded4de/

Log:	fix shared object suffix

diff --git a/rpython/translator/c/test/test_standalone.py b/rpython/translator/c/test/test_standalone.py
--- a/rpython/translator/c/test/test_standalone.py
+++ b/rpython/translator/c/test/test_standalone.py
@@ -1297,7 +1297,10 @@
 
         t, cbuilder = self.compile(entry_point, shared=True,
                                    entrypoints=[f])
+        ext_suffix = '.so'
+        if cbuilder.eci.platform.name == 'msvc':
+            ext_suffix = '.dll'
         libname = cbuilder.executable_name.join('..', 'lib' +
-                                                cbuilder.modulename + '.so')
+                                      cbuilder.modulename + ext_suffix)
         lib = ctypes.CDLL(str(libname))
         assert lib.foo(13) == 16


More information about the pypy-commit mailing list