Mercurial > hg > graal-compiler
diff mxtool/mx.py @ 4234:057620486c90
Improved time stamps of gate tasks to show duration of each task explicitly.
Added 'fastdebug' config to gate testing.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 06 Jan 2012 14:01:43 +0100 |
parents | 1fe200db8c30 |
children | 11383dafc318 |
line wrap: on
line diff
--- a/mxtool/mx.py Thu Jan 05 17:02:58 2012 -0800 +++ b/mxtool/mx.py Fri Jan 06 14:01:43 2012 +0100 @@ -793,7 +793,11 @@ Compile all the Java source code using the appropriate compilers and linkers for the various source code types.""" - parser = parser if parser is not None else ArgumentParser(prog='mx build'); + suppliedParser = parser is not None + if not suppliedParser: + parser = ArgumentParser(prog='mx build') + + parser = parser if parser is not None else ArgumentParser(prog='mx build') parser.add_argument('-f', action='store_true', dest='force', help='force compilation even if class files are up to date') parser.add_argument('-c', action='store_true', dest='clean', help='removes existing build output') parser.add_argument('--source', dest='compliance', help='Java compliance level', default='1.6') @@ -801,6 +805,9 @@ parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') parser.add_argument('--jdt', help='Eclipse installation or path to ecj.jar for using the Eclipse batch compiler instead of javac', metavar='<path>') + + if suppliedParser: + parser.add_argument('remainder', nargs=REMAINDER, metavar='...') args = parser.parse_args(args)