summaryrefslogtreecommitdiff
path: root/giscanner/scannermain.py
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <icq@gnome.org>2014-08-06 11:00:59 +0200
committerIgnacio Casal Quinteiro <icq@gnome.org>2014-08-06 11:01:47 +0200
commitf530208ffe36f7f36476fd5f1bb78124cc9ac0ec (patch)
tree6bf45f1ebd190e01a4bf06fec83b591b7404161b /giscanner/scannermain.py
parentc930859297c32e52f8cad0914dec2cdd7eff18dc (diff)
downloadgobject-introspection-f530208ffe36f7f36476fd5f1bb78124cc9ac0ec.tar.gz
Check for MINGW instead of MINGW32
New versions of msys2 provide a MINGW64 env variable instead. https://bugzilla.gnome.org/show_bug.cgi?id=734163
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-xgiscanner/scannermain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index ac340305..c3706f20 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -199,7 +199,8 @@ match the namespace prefix.""")
group = get_preprocessor_option_group(parser)
parser.add_option_group(group)
- if os.environ.get('MSYSTEM') == 'MINGW32':
+ msystemenv = os.environ.get('MSYSTEM')
+ if msystemenv and msystemenv.startswith('MINGW'):
group = get_windows_option_group(parser)
parser.add_option_group(group)