diff mx/mx_graal.py @ 16976:87fc600ec586

mx: skip downloading hsdis if not available.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 27 Aug 2014 15:36:16 +0200
parents b03a16cc5245
children e9ff3e7055e5
line wrap: on
line diff
--- a/mx/mx_graal.py	Wed Aug 27 15:54:00 2014 +0200
+++ b/mx/mx_graal.py	Wed Aug 27 15:36:16 2014 +0200
@@ -1952,8 +1952,12 @@
         'intel/hsdis-amd64.dylib' : 'fdb13ef0d7d23d93dacaae9c98837bea0d4fc5a2',
     }
 
+    flavoredLib = flavor + "/" + lib
+    if flavoredLib not in sha1s:
+        mx.logv("hsdis not supported on this plattform or architecture")
+        return
+
     if not exists(path):
-        flavoredLib = flavor + "/" + lib
         sha1 = sha1s[flavoredLib]
         sha1path = path + '.sha1'
         mx.download_file_with_sha1('hsdis', path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavoredLib], sha1, sha1path, True, True, sources=False)