Add MINGW64 support on MSYS2 platform#124
Conversation
It seems we can not build with `x86_64-w64-mingw32-gcc.exe` on MSYS2 due to the fact that - `sizeof(long)` is different on general UNIX and MINGW64, 8 and 4, respectively. - Assumption on MSVC compiler if `sys.platform` is win32 in setup.py. Using `long long` instead of `long` and handling GCC cases on win32 platforms seem to be enough for MINGW64 support without breaking anything. Credit goes to http://proglab.blog.fc2.com/blog-entry-48.html and Google Translate.
|
Thank you for the patch, however I'm afraid this patch may be incorrect, even if it happens to work for you in some cases. As far as I remember, win64 has ABI that is very different to other operating systems, so using
You would notice, that windows requires xmm6-xmm15, as well as rsi and rdi to be saved. I vaguely remember that it was actually possible to use |
|
I see. |
It seems we can not build with
x86_64-w64-mingw32-gcc.exeon MSYS2 dueto the fact that
sizeof(long)is different on general UNIX and MINGW64, 8 and 4,respectively.
sys.platformis win32 in setup.py.Using
long longinstead oflongand handling GCC cases on win32platforms seem to be enough for MINGW64 support without breaking
anything.
Credit goes to http://proglab.blog.fc2.com/blog-entry-48.html and Google
Translate.