GNOME Bugzilla – Bug 734163
win32: giscanner should check for MINGW64
Last modified: 2015-02-07 16:49:44 UTC
On this line https://git.gnome.org/browse/gobject-introspection/tree/giscanner/scannermain.py#n202 it is checked for MINGW32, although we should also check for MINGW64 which is set by the new 64bit msys.
Yes, that seems to be the logical conclusion.
More right in this case will be checking value with "starts with" like: msysenv = os.environ.get('MSYSTEM') if msysenv and msysenv.startswith('MINGW')
Also, m_option is never used, so this change you're proposing will have no effect either way. There's another place where GI checks for MSYSTEM, in ccompiler.py, but that's a separate issue (and that code is going to be patched up soon, so we shouldn't intrude).
Created attachment 282643 [details] [review] Check for MINGW instead of MINGW32 New versions of msys2 provide a MINGW64 env variable instead.
Review of attachment 282643 [details] [review]: That should be OK. That said, we should ask dieterv why he made -m<option> processing MSYS-only. GCC has a great number of -m options (Submodel-options), it has nothing to do with Windows.
Attachment 282643 [details] pushed as f530208 - Check for MINGW instead of MINGW32
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]