Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
16975:ccb4e2bd894f | 16976:87fc600ec586 |
---|---|
1950 'intel/hsdis-amd64.dll' : '6a388372cdd5fe905c1a26ced614334e405d1f30', | 1950 'intel/hsdis-amd64.dll' : '6a388372cdd5fe905c1a26ced614334e405d1f30', |
1951 'intel/hsdis-amd64.so' : '844ed9ffed64fe9599638f29a8450c50140e3192', | 1951 'intel/hsdis-amd64.so' : '844ed9ffed64fe9599638f29a8450c50140e3192', |
1952 'intel/hsdis-amd64.dylib' : 'fdb13ef0d7d23d93dacaae9c98837bea0d4fc5a2', | 1952 'intel/hsdis-amd64.dylib' : 'fdb13ef0d7d23d93dacaae9c98837bea0d4fc5a2', |
1953 } | 1953 } |
1954 | 1954 |
1955 flavoredLib = flavor + "/" + lib | |
1956 if flavoredLib not in sha1s: | |
1957 mx.logv("hsdis not supported on this plattform or architecture") | |
1958 return | |
1959 | |
1955 if not exists(path): | 1960 if not exists(path): |
1956 flavoredLib = flavor + "/" + lib | |
1957 sha1 = sha1s[flavoredLib] | 1961 sha1 = sha1s[flavoredLib] |
1958 sha1path = path + '.sha1' | 1962 sha1path = path + '.sha1' |
1959 mx.download_file_with_sha1('hsdis', path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavoredLib], sha1, sha1path, True, True, sources=False) | 1963 mx.download_file_with_sha1('hsdis', path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavoredLib], sha1, sha1path, True, True, sources=False) |
1960 if copyToDir is not None and exists(copyToDir): | 1964 if copyToDir is not None and exists(copyToDir): |
1961 shutil.copy(path, copyToDir) | 1965 shutil.copy(path, copyToDir) |