Mercurial > hg > graal-compiler
diff mx/commands.py @ 5197:e91f0761c56d
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Fri, 06 Apr 2012 14:26:33 +0200 |
parents | 8125c1f6472b a6eceb5efb0e |
children | ce6cb3a1eb44 c005ca943790 |
line wrap: on
line diff
--- a/mx/commands.py Fri Apr 06 14:26:13 2012 +0200 +++ b/mx/commands.py Fri Apr 06 14:26:33 2012 +0200 @@ -49,6 +49,8 @@ _jacoco = 'off' +_make_eclipse_launch = False + _jacocoExcludes = ['com.oracle.graal.hotspot.snippets.ArrayCopySnippets', 'com.oracle.graal.snippets.DoubleSnippets', 'com.oracle.graal.snippets.FloatSnippets', @@ -226,7 +228,7 @@ mx.abort('DaCapo failures: ' + str(failed)) def intro(args): - """"run a simple program and visualize its compilation in the Graal Visualizer""" + """run a simple program and visualize its compilation in the Graal Visualizer""" # Start the visualizer in a separate thread t = Thread(target=gv, args=([[]])) t.start() @@ -512,7 +514,7 @@ with open(jvmCfg, 'w') as f: for line in lines: f.write(line) - + def vm(args, vm=None, nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None): """run the VM selected by the '--vm' option""" @@ -521,6 +523,8 @@ build = vmbuild if vmbuild is not None else _vmbuild if _vmSourcesAvailable else 'product' mx.expand_project_in_args(args) + if _make_eclipse_launch: + mx.make_eclipse_launch(args, 'graal-' + build, name=None, deps=mx.project('com.oracle.graal.hotspot').all_deps([], True)) if len([a for a in args if 'PrintAssembly' in a]) != 0: hsdis([]) if mx.java().debug_port is not None: @@ -944,6 +948,7 @@ mx.add_argument('--product', action='store_const', dest='vmbuild', const='product', help='select the product build of the VM') mx.add_argument('--debug', action='store_const', dest='vmbuild', const='debug', help='select the debug build of the VM') mx.add_argument('--fastdebug', action='store_const', dest='vmbuild', const='fastdebug', help='select the fast debug build of the VM') + mx.add_argument('--ecl', action='store_true', dest='make_eclipse_launch', help='create launch configuration for running VM execution(s) in Eclipse') commands.update({ 'export': [export, '[-options] [zipfile]'], @@ -968,5 +973,7 @@ if hasattr(opts, 'vmbuild') and opts.vmbuild is not None: global _vmbuild _vmbuild = opts.vmbuild + global _make_eclipse_launch + _make_eclipse_launch = getattr(opts, 'make_eclipse_launch', False) global _jacoco _jacoco = opts.jacoco