Merge pull request #247 from elsamuko/master

chg: recognize cygwin in setup.py
This commit is contained in:
Romain 2018-12-19 08:29:52 +01:00 committed by GitHub
commit 3e4ec39ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ def get_lief_platform_name():
system = platform.system()
arch = struct.calcsize('P') * 8
if system == 'Windows':
if system == 'Windows' or system.startswith('CYGWIN'):
return "windows_x64" if arch == 64 else "windows_x32"
elif system == 'Darwin':
return "osx" if arch == 64 else "osx_x32"