MinGW32 support PyPy with mscr90.dll
import ctypes ctypes.util.find_msvcrt() 'msvcr90.dll'And even python.exe dependence on msvcr90.dllref to http://trac.seqan.de/wiki/HowTo/SelectASpecificMsvcrtVersionWithMinGw
Windows system, after set cc=mingw32-gcc PyPy can not pass many tests: pytest.py pypy/translator/test/test_unsimplify.py pytest.py pypy/translator/c/test/test_extfunc.py::test_dictlike_environ_getitem ... I find this is because MinGW32 gcc compile default use msvcrt.dll, but we need msvcr90.dll, as Python 2.7 use msvcr90.dll. this is how I make MinGW32 gcc use msvcr90.dll instead: save these to you MinGW directory as file D:\MinGW\lib\gcc\mingw32\4.6.2\specs *cpp: %{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} -D__MSVCRT_VERSION__=0x0900 *libgcc: %{mthreads:-lmingwthrd} -lmingw32 %{shared-libgcc:-lgcc_s} %{!shared-libgcc:-lgcc_eh} -lgcc -lmoldname90 -lmingwex -lmsvcr90 I suggest this instruction should be add to PyPy doc: MinGW32 support
Hi Bookaa, On Tue, Jun 5, 2012 at 3:46 AM, bookaa <rorsoft@gmail.com> wrote:
... I suggest this instruction should be add to PyPy doc: MinGW32 support
Sorry for the delay. As you noticed, generally our interest in mingw32 is close to zero, with Visual Studio taking up all of our (already very tiny) interest about Windows. If you want the changes you described to be included in the pypy documentation at http://doc.pypy.org/en/latest/windows.html#using-the-mingw-compiler , you need to update the source yourself (file pypy/doc/windows.rst) and send us a patch. We'd be happy to take it. A bientôt, Armin.
participants (2)
-
Armin Rigo
-
bookaa