mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-28 05:14:33 +00:00
Merge pull request #247 from elsamuko/master
chg: recognize cygwin in setup.py
This commit is contained in:
commit
3e4ec39ab3
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user