Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
4233:fa53d5e4aa35 | 4234:057620486c90 |
---|---|
791 """compile the Java and C sources, linking the latter | 791 """compile the Java and C sources, linking the latter |
792 | 792 |
793 Compile all the Java source code using the appropriate compilers | 793 Compile all the Java source code using the appropriate compilers |
794 and linkers for the various source code types.""" | 794 and linkers for the various source code types.""" |
795 | 795 |
796 parser = parser if parser is not None else ArgumentParser(prog='mx build'); | 796 suppliedParser = parser is not None |
797 if not suppliedParser: | |
798 parser = ArgumentParser(prog='mx build') | |
799 | |
800 parser = parser if parser is not None else ArgumentParser(prog='mx build') | |
797 parser.add_argument('-f', action='store_true', dest='force', help='force compilation even if class files are up to date') | 801 parser.add_argument('-f', action='store_true', dest='force', help='force compilation even if class files are up to date') |
798 parser.add_argument('-c', action='store_true', dest='clean', help='removes existing build output') | 802 parser.add_argument('-c', action='store_true', dest='clean', help='removes existing build output') |
799 parser.add_argument('--source', dest='compliance', help='Java compliance level', default='1.6') | 803 parser.add_argument('--source', dest='compliance', help='Java compliance level', default='1.6') |
800 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') | 804 parser.add_argument('--Wapi', action='store_true', dest='warnAPI', help='show warnings about using internal APIs') |
801 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') | 805 parser.add_argument('--no-java', action='store_false', dest='java', help='do not build Java projects') |
802 parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') | 806 parser.add_argument('--no-native', action='store_false', dest='native', help='do not build native projects') |
803 parser.add_argument('--jdt', help='Eclipse installation or path to ecj.jar for using the Eclipse batch compiler instead of javac', metavar='<path>') | 807 parser.add_argument('--jdt', help='Eclipse installation or path to ecj.jar for using the Eclipse batch compiler instead of javac', metavar='<path>') |
808 | |
809 if suppliedParser: | |
810 parser.add_argument('remainder', nargs=REMAINDER, metavar='...') | |
804 | 811 |
805 args = parser.parse_args(args) | 812 args = parser.parse_args(args) |
806 | 813 |
807 jdtJar = None | 814 jdtJar = None |
808 if args.jdt is not None: | 815 if args.jdt is not None: |