changeset 4575:ccb5369481a2

Clarified mx help text on how to build/run [Graal|Client|Server].
author Doug Simon <doug.simon@oracle.com>
date Mon, 13 Feb 2012 10:27:38 +0100
parents ab4a47b6a187
children 8b53e3920a6b
files mx/commands.py
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Sun Feb 12 23:37:47 2012 +0100
+++ b/mx/commands.py	Mon Feb 13 10:27:38 2012 +0100
@@ -343,9 +343,12 @@
     return ret
     
 def build(args):
-    """builds the GraalVM binary and compiles the Graal classes
+    """build the VM binary
     
-    The optional last argument specifies what type of VM to build."""
+    The global '--vm' option selects which VM to build. This command also
+    compiles the Graal classes irrespective of what VM is being built.
+    The optional last argument specifies what build level is to be used
+    for the VM binary."""
     
     # Call mx.build to compile the Java sources        
     opts2 = mx.build(['--source', '1.7'] + args, parser=ArgumentParser(prog='mx build'))
@@ -430,7 +433,7 @@
                     f.write(line)
     
 def vm(args, vm=None, nonZeroIsFatal=True, out=None, err=None, cwd=None, timeout=None, vmbuild=None):
-    """run the GraalVM"""
+    """run the VM selected by the '--vm' option"""
 
     if vm is None:
         vm = _vm
@@ -686,7 +689,7 @@
     sanitycheck.getSPECjvm2008(benchArgs, skipValid, wt, it).bench('graal', opts=vmArgs)
     
 def hsdis(args):
-    """Installs the hsdis library
+    """install the hsdis library
 
     This is needed to support HotSpot's assembly dumping features.
     By default it installs the Intel syntax version, use the 'att' argument to install AT&T syntax."""
@@ -717,7 +720,7 @@
     }
 
     if (_vmSourcesAvailable):
-        mx.add_argument('--vm', action='store', dest='vm', default='graal', choices=['graal', 'server', 'client'], help='the VM to run (default: graal)')
+        mx.add_argument('--vm', action='store', dest='vm', default='graal', choices=['graal', 'server', 'client'], help='the VM to build/run (default: graal)')
         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')