Author: Matti Picus <matti.pi...@gmail.com>
Branch: 
Changeset: r69976:b03b791c1e26
Date: 2014-03-16 00:50 +0200
http://bitbucket.org/pypy/pypy/changeset/b03b791c1e26/

Log:    a better fix for ignoring pragma commane(lib...) on MSVC

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
@@ -65,7 +65,7 @@
         # '%s' undefined; assuming extern returning int
         kwds["compile_extra"] = ["/we4013"]
         # prevent linking with python27.lib
-        kwds["compile_extra"].append("/DPy_BUILD_CORE")
+        kwds["link_extra"]=["/NODEFAULTLIB:Python27.lib"]
     elif sys.platform == 'darwin':
         kwds["link_files"] = [str(api_library + '.dylib')]
     else:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to