Add MingW as "platform"
This commit is contained in:
@@ -48,7 +48,8 @@ def get_platform(filename):
|
||||
tokens = filename.split("-")
|
||||
platforms = ('osx', 'mac', 'bsd',
|
||||
'win', 'linux', 'source',
|
||||
'solaris')
|
||||
'solaris',
|
||||
'mingw')
|
||||
platform_tokens = []
|
||||
found = False
|
||||
|
||||
|
@@ -622,7 +622,13 @@ def buildslave(target=None, source=None, env=None):
|
||||
else:
|
||||
extension = '.tar.bz2'
|
||||
|
||||
platform = env['OURPLATFORM'].split('-')[0]
|
||||
if env['OURPLATFORM'] == 'win32-mingw':
|
||||
platform = 'mingw32'
|
||||
elif env['OURPLATFORM'] == 'win32-mingw':
|
||||
platform = 'mingw64'
|
||||
else:
|
||||
platform = env['OURPLATFORM'].split('-')[0]
|
||||
|
||||
if platform == 'linux':
|
||||
import platform
|
||||
|
||||
|
Reference in New Issue
Block a user