[pypy-commit] pypy default: fix link error on untranslated win32 tests, only to discover tests hang on rffi cast in from_ref() in pyobject

mattip noreply at buildbot.pypy.org
Fri Mar 14 16:09:11 CET 2014


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r69957:9ec1c621f45c
Date: 2014-03-14 17:05 +0200
http://bitbucket.org/pypy/pypy/changeset/9ec1c621f45c/

Log:	fix link error on untranslated win32 tests, only to discover tests
	hang on rffi cast in from_ref() in pyobject

diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -64,6 +64,8 @@
         kwds["libraries"] = [api_library]
         # '%s' undefined; assuming extern returning int
         kwds["compile_extra"] = ["/we4013"]
+        # prevent linking with python27.lib
+        kwds["compile_extra"].append("/DPy_BUILD_CORE")
     elif sys.platform == 'darwin':
         kwds["link_files"] = [str(api_library + '.dylib')]
     else:


More information about the pypy-commit mailing list