--- engine/SCons/Platform/__init__.py.orig	2016-04-09 11:29:58.000000000 -0700
+++ engine/SCons/Platform/__init__.py	2016-06-30 07:07:13.921867200 -0700
@@ -82,6 +82,8 @@
             return 'posix'
     elif os.name == 'os2':
         return 'os2'
+    elif 'MSYSTEM' in os.environ:
+        return 'msys'
     else:
         return sys.platform
 

Set platform to msys on MSYSTEM cases
Set platform to msys on MSYSTEM cases

When running on MINGW32 and MINGW64 we need to use msys and not
win32
