# HG changeset patch # User Doug Simon # Date 1333481492 -7200 # Node ID 6fbf12b8e5723364e68ae89fb96847fe051a0ae9 # Parent c49f9f0b9aadf8fe3157aec9dad68c73b0d0de5d automated download of hsdis lib if PrintAssembly option is used; added support for hsdis on the Mac diff -r c49f9f0b9aad -r 6fbf12b8e572 mx/commands.py --- a/mx/commands.py Tue Apr 03 10:58:23 2012 +0200 +++ b/mx/commands.py Tue Apr 03 21:31:32 2012 +0200 @@ -520,7 +520,9 @@ vm = _vm build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' - mx.expand_project_in_args(args) + mx.expand_project_in_args(args) + if len([a for a in args if 'PrintAssembly' in a]) != 0: + hsdis([]) if mx.java().debug_port is not None: args = ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(mx.java().debug_port)] + args if _jacoco == 'on' or _jacoco == 'append': @@ -895,7 +897,8 @@ build = _vmbuild if _vmSourcesAvailable else 'product' lib = mx.lib_suffix('hsdis-amd64') path = join(_vmLibDirInJdk(_jdk(build)), lib) - mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) + if not exists(path): + mx.download(path, ['http://lafo.ssw.uni-linz.ac.at/hsdis/' + flavor + "/" + lib]) def jacocoreport(args): """creates a JaCoCo coverage report diff -r c49f9f0b9aad -r 6fbf12b8e572 mxtool/mx.py --- a/mxtool/mx.py Tue Apr 03 10:58:23 2012 +0200 +++ b/mxtool/mx.py Tue Apr 03 21:31:32 2012 +0200 @@ -728,8 +728,10 @@ os = get_os(); if os == 'windows': return name + '.dll' - if os == 'linux': + if os == 'linux' or os == 'solaris': return name + '.so' + if os == 'darwin': + return name + '.dylib' return name """