Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 21708:6df25b1418be
moved com.oracle.asm.** to jvmci-util.jar (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 18:06:44 +0200 |
parents | 729e6acde6c0 |
children | b5bbf03bc17a |
comparison
equal
deleted
inserted
replaced
21707:e0f311284930 | 21708:6df25b1418be |
---|---|
624 Patches the constant "@@@@@@@@@@@@@@@@graal.version@@@@@@@@@@@@@@@@" in the constant pool of Graal.class | 624 Patches the constant "@@@@@@@@@@@@@@@@graal.version@@@@@@@@@@@@@@@@" in the constant pool of Graal.class |
625 with the computed Graal version string. | 625 with the computed Graal version string. |
626 """ | 626 """ |
627 zf = zipfile.ZipFile(dist.path, 'r') | 627 zf = zipfile.ZipFile(dist.path, 'r') |
628 graalClassfilePath = 'com/oracle/graal/api/runtime/Graal.class' | 628 graalClassfilePath = 'com/oracle/graal/api/runtime/Graal.class' |
629 graalClassfile = zf.read(graalClassfilePath) | 629 try: |
630 graalClassfile = zf.read(graalClassfilePath) | |
631 except KeyError: | |
632 mx.log(graalClassfilePath + ' is not present in ' + dist.path) | |
633 return | |
630 placeholder = '@@@@@@@@@@@@@@@@graal.version@@@@@@@@@@@@@@@@' | 634 placeholder = '@@@@@@@@@@@@@@@@graal.version@@@@@@@@@@@@@@@@' |
631 placeholderLen = len(placeholder) | 635 placeholderLen = len(placeholder) |
632 versionSpec = '{:' + str(placeholderLen) + '}' | 636 versionSpec = '{:' + str(placeholderLen) + '}' |
633 versionStr = versionSpec.format(graal_version()) | 637 versionStr = versionSpec.format(graal_version()) |
634 | 638 |