[pypy-commit] pypy default: a better fix for ignoring pragma commane(lib...) on MSVC
mattip
noreply at buildbot.pypy.org
Sun Mar 16 00:03:43 CET 2014
Author: Matti Picus <matti.picus at 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:
More information about the pypy-commit
mailing list