Add support for linux_url in emsdk.
This commit is contained in:
7
emsdk
7
emsdk
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user