Mercurial > hg > truffle
diff mx/commands.py @ 5269:6b2d030d01ff
Merge
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 20 Apr 2012 15:03:02 +0200 |
parents | b8661be84cfd a549662f6c6f |
children | 31fc6b6c0425 |
line wrap: on
line diff
--- a/mx/commands.py Fri Apr 20 15:02:54 2012 +0200 +++ b/mx/commands.py Fri Apr 20 15:03:02 2012 +0200 @@ -547,6 +547,14 @@ else: file(timestampFile, 'a') +def vmg(args): + """run the debug build of VM selected by the '--vm' option""" + return vm(args, vmbuild='debug') + +def vmfg(args): + """run the fastdebug build of VM selected by the '--vm' option""" + return vm(args, vmbuild='fastdebug') + 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""" @@ -988,7 +996,9 @@ 'unittest' : [unittest, '[filters...]'], 'jtt' : [jtt, '[filters...]'], 'jacocoreport' : [jacocoreport, '[output directory]'], - 'vm': [vm, '[-options] class [args...]'] + 'vm': [vm, '[-options] class [args...]'], + 'vmg': [vmg, '[-options] class [args...]'], + 'vmfg': [vmfg, '[-options] class [args...]'] } mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])