Add support for linux_url in emsdk.
This commit is contained in:
7
emsdk
7
emsdk
@@ -884,12 +884,15 @@ class Tool:
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
else:
|
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
|
return True
|
||||||
|
|
||||||
if OSX and hasattr(self, 'osx_url'):
|
if OSX and hasattr(self, 'osx_url'):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
if LINUX and hasattr(self, 'linux_url'):
|
||||||
|
return True
|
||||||
|
|
||||||
if WINDOWS and (hasattr(self, 'windows_url') or hasattr(self, 'windows_install_path')):
|
if WINDOWS and (hasattr(self, 'windows_url') or hasattr(self, 'windows_install_path')):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -1002,6 +1005,8 @@ class Tool:
|
|||||||
return self.windows_url
|
return self.windows_url
|
||||||
elif OSX and hasattr(self, 'osx_url'):
|
elif OSX and hasattr(self, 'osx_url'):
|
||||||
return 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'):
|
elif (OSX or LINUX) and hasattr(self, 'unix_url'):
|
||||||
return self.unix_url
|
return self.unix_url
|
||||||
elif hasattr(self, 'url'):
|
elif hasattr(self, 'url'):
|
||||||
|
|||||||
Reference in New Issue
Block a user