Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 21281:326a1f374198
fixed command line parsing for ctw command
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 11 May 2015 12:21:04 +0200 |
parents | 41ec6d89cb84 |
children | f172a195a8a9 |
comparison
equal
deleted
inserted
replaced
21280:b97ec8aec2c7 | 21281:326a1f374198 |
---|---|
1604 defaultCtwopts = '-Inline' | 1604 defaultCtwopts = '-Inline' |
1605 | 1605 |
1606 parser = ArgumentParser(prog='mx ctw') | 1606 parser = ArgumentParser(prog='mx ctw') |
1607 parser.add_argument('--ctwopts', action='store', help='space separated Graal options used for CTW compilations (default: --ctwopts="' + defaultCtwopts + '")', default=defaultCtwopts, metavar='<options>') | 1607 parser.add_argument('--ctwopts', action='store', help='space separated Graal options used for CTW compilations (default: --ctwopts="' + defaultCtwopts + '")', default=defaultCtwopts, metavar='<options>') |
1608 parser.add_argument('--jar', action='store', help='jar of classes to compiled instead of rt.jar', metavar='<path>') | 1608 parser.add_argument('--jar', action='store', help='jar of classes to compiled instead of rt.jar', metavar='<path>') |
1609 parser.add_argument('vmargs', nargs=REMAINDER, metavar='VM options...') | |
1610 | 1609 |
1611 args, vmargs = parser.parse_known_args(args) | 1610 args, vmargs = parser.parse_known_args(args) |
1612 | 1611 |
1613 if args.ctwopts: | 1612 if args.ctwopts: |
1614 vmargs.append('-G:CompileTheWorldConfig=' + args.ctwopts) | 1613 vmargs.append('-G:CompileTheWorldConfig=' + args.ctwopts) |