Index: pylib/gyp/MSVSVersion.py |
diff --git a/pylib/gyp/MSVSVersion.py b/pylib/gyp/MSVSVersion.py |
index 92e583fd6e27c75406b9c2d197d3ad73b72cb66f..d9bfa684fa30c28b28da67d07e9a08d309d28dae 100644 |
--- a/pylib/gyp/MSVSVersion.py |
+++ b/pylib/gyp/MSVSVersion.py |
@@ -84,10 +84,11 @@ class VisualStudioVersion(object): |
# vcvars32, which it can only find if VS??COMNTOOLS is set, which it |
# isn't always. |
if target_arch == 'x86': |
- if self.short_name == '2013' and ( |
+ if self.short_name >= '2013' and self.short_name[-1] != 'e' and ( |
os.environ.get('PROCESSOR_ARCHITECTURE') == 'AMD64' or |
os.environ.get('PROCESSOR_ARCHITEW6432') == 'AMD64'): |
- # VS2013 non-Express has a x64-x86 cross that we want to prefer. |
+ # VS2013 and later, non-Express have a x64-x86 cross that we want |
+ # to prefer. |
return [os.path.normpath( |
os.path.join(self.path, 'VC/vcvarsall.bat')), 'amd64_x86'] |
# Otherwise, the standard x86 compiler. |