windows use_mingw build fix

pull/360/head
Azeez Abass 2019-12-15 15:13:19 -07:00
parent 3ee07f652b
commit e8488656e5
1 changed files with 13 additions and 10 deletions

View File

@ -215,6 +215,9 @@ elif env['platform'] == 'windows':
env['AR'] = "i686-w64-mingw32-ar"
env['RANLIB'] = "i686-w64-mingw32-ranlib"
env['LINK'] = "i686-w64-mingw32-g++"
elif host_platform == 'windows' and env['use_mingw']:
env = env.Clone(tools=['mingw'])
env["SPAWN"] = mySpawn
# Native or cross-compilation using MinGW
if host_platform == 'linux' or host_platform == 'osx' or env['use_mingw']: