Mercurial > hg > truffle
comparison mx/commands.py @ 5189:6fbf12b8e572
automated download of hsdis lib if PrintAssembly option is used; added support for hsdis on the Mac
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 03 Apr 2012 21:31:32 +0200 |
parents | 57546200db29 |
children | a6eceb5efb0e 8125c1f6472b |
comparison
equal
deleted
inserted
replaced
5188:c49f9f0b9aad | 5189:6fbf12b8e572 |
---|---|
518 | 518 |
519 if vm is None: | 519 if vm is None: |
520 vm = _vm | 520 vm = _vm |
521 | 521 |
522 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' | 522 build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' |
523 mx.expand_project_in_args(args) | 523 mx.expand_project_in_args(args) |
524 if len([a for a in args if 'PrintAssembly' in a]) != 0: | |
525 hsdis([]) | |
524 if mx.java().debug_port is not None: | 526 if mx.java().debug_port is not None: |
525 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(mx.java().debug_port)] + args | 527 args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(mx.java().debug_port)] + args |
526 if _jacoco == 'on' or _jacoco == 'append': | 528 if _jacoco == 'on' or _jacoco == 'append': |
527 jacocoagent = mx.library("JACOCOAGENT", True) | 529 jacocoagent = mx.library("JACOCOAGENT", True) |
528 agentOptions = { | 530 agentOptions = { |
893 if 'att' in args: | 895 if 'att' in args: |
894 flavor = 'att' | 896 flavor = 'att' |
895 build = _vmbuild if _vmSourcesAvailable else 'product' | 897 build = _vmbuild if _vmSourcesAvailable else 'product' |
896 lib = mx.lib_suffix('hsdis-amd64') | 898 lib = mx.lib_suffix('hsdis-amd64') |
897 path = join(_vmLibDirInJdk(_jdk(build)), lib) | 899 path = join(_vmLibDirInJdk(_jdk(build)), lib) |
898 mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) | 900 if not exists(path): |
901 mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) | |
899 | 902 |
900 def jacocoreport(args): | 903 def jacocoreport(args): |
901 """creates a JaCoCo coverage report | 904 """creates a JaCoCo coverage report |
902 | 905 |
903 Creates the report from the 'jacoco.exec' file in the current directory. | 906 Creates the report from the 'jacoco.exec' file in the current directory. |