From 013997daac9dd37ab8dbd09efa9a38356d804cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Fri, 25 Sep 2015 16:58:45 +0300 Subject: [PATCH] Add support for linux_url in emsdk. --- emsdk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emsdk b/emsdk index 1f4430b..012f856 100755 --- a/emsdk +++ b/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'):