Add MSYS/MinGW compiling support on Windows

Tested successfully with MSYS2 with the following command:
scons platform=windows generate_bindings=yes use_mingw=1 bits=64
pull/295/head
unknown 2019-05-15 21:09:39 -04:00
parent 04548011e3
commit 73c588456c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ if sys.platform.startswith('linux'):
host_platform = 'linux' host_platform = 'linux'
elif sys.platform == 'darwin': elif sys.platform == 'darwin':
host_platform = 'osx' host_platform = 'osx'
elif sys.platform == 'win32': elif sys.platform == 'win32' or sys.platform == 'msys':
host_platform = 'windows' host_platform = 'windows'
else: else:
raise ValueError( raise ValueError(