# HG changeset patch # User Doug Simon # Date 1329138109 -3600 # Node ID bc8b58c1176828f1f877f8012b1309ebe2e01e98 # Parent 8b53e3920a6bd16e8c068795ec52f438090f1c98 Added debug build of HotSpot Client to the gate. diff -r 8b53e3920a6b -r bc8b58c11768 mx/commands.py --- a/mx/commands.py Mon Feb 13 10:33:25 2012 +0100 +++ b/mx/commands.py Mon Feb 13 14:01:49 2012 +0100 @@ -342,7 +342,7 @@ log.close() return ret -def build(args): +def build(args, vm=None): """build the VM binary The global '--vm' option selects which VM to build. This command also @@ -360,7 +360,9 @@ if len(builds) == 0: builds = ['product'] - vm = _vm + if vm is None: + vm = _vm + if vm == 'server': buildSuffix = '' elif vm == 'client': @@ -557,6 +559,20 @@ t = Task('CleanAndBuildGraalVisualizer') mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) tasks.append(t.stop()) + + tasks.append(t.stop()) + mx.run(['ant', '-f', join(_graal_home, 'visualizer', 'build.xml'), '-q', 'clean', 'build']) + tasks.append(t.stop()) + + # Prevent Graal modifications from breaking the standard client build + t = Task('BuildClientDebug') + build(['--no-java', 'debug'], vm='client') + tasks.append(t.stop()) + + # Prevent Graal modifications from breaking the standard server build + #t = Task('BuildServerDebug') + #build(['--no-java', 'debug'], vm='server') + #tasks.append(t.stop()) for vmbuild in ['fastdebug', 'product']: global _vmbuild