[pypy-commit] pypy default: Add python27.lib automatically, so MSVC users need not specify the .lib

arigo noreply at buildbot.pypy.org
Thu Aug 7 13:23:36 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r72708:4b4823920562
Date: 2014-08-07 13:23 +0200
http://bitbucket.org/pypy/pypy/changeset/4b4823920562/

Log:	Add python27.lib automatically, so MSVC users need not specify the
	.lib file in their Makefile

diff --git a/include/PyPy.h b/include/PyPy.h
--- a/include/PyPy.h
+++ b/include/PyPy.h
@@ -53,6 +53,12 @@
 int pypy_execute_source_ptr(char *source, void* ptr);
 
 
+/* Windows hackery */
+#if defined(_MSC_VER)
+#  pragma comment(lib,"python27.lib")
+#endif
+
+
 #ifdef __cplusplus
 }
 #endif


More information about the pypy-commit mailing list