Add support for linux_url in emsdk.

This commit is contained in:
Jukka Jylänki
2015-09-25 16:58:45 +03:00
parent 4fd7768bd4
commit 013997daac

7
emsdk
View File

@@ -884,12 +884,15 @@ class Tool:
else:
return False
else:
if not hasattr(self, 'osx_url') and not hasattr(self, 'windows_url') and not hasattr(self, 'unix_url'):
if not hasattr(self, 'osx_url') and not hasattr(self, 'windows_url') and not hasattr(self, 'unix_url') and not hasattr(self, 'linux_url'):
return True
if OSX and hasattr(self, 'osx_url'):
return True
if LINUX and hasattr(self, 'linux_url'):
return True
if WINDOWS and (hasattr(self, 'windows_url') or hasattr(self, 'windows_install_path')):
return True
@@ -1002,6 +1005,8 @@ class Tool:
return self.windows_url
elif OSX and hasattr(self, 'osx_url'):
return self.osx_url
elif LINUX and hasattr(self, 'linux_url'):
return self.osx_url
elif (OSX or LINUX) and hasattr(self, 'unix_url'):
return self.unix_url
elif hasattr(self, 'url'):