changeset 4577:bc8b58c11768

Added debug build of HotSpot Client to the gate.
author Doug Simon <doug.simon@oracle.com>
date Mon, 13 Feb 2012 14:01:49 +0100
parents 8b53e3920a6b
children b70d180ec022
files mx/commands.py
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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