Mercurial > hg > truffle
comparison mx/mx_graal.py @ 18106:7a771b48e392
mx: improved ctw command usage message and made the default value for --ctwopts be "-Inline"
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 16 Oct 2014 13:51:28 +0200 |
parents | b8d89559915d |
children | 2579d0ac7ad6 |
comparison
equal
deleted
inserted
replaced
18105:922e104f179a | 18106:7a771b48e392 |
---|---|
1363 return self | 1363 return self |
1364 | 1364 |
1365 def ctw(args): | 1365 def ctw(args): |
1366 """run CompileTheWorld""" | 1366 """run CompileTheWorld""" |
1367 | 1367 |
1368 defaultCtwopts = '-Inline' | |
1369 | |
1368 parser = ArgumentParser(prog='mx ctw') | 1370 parser = ArgumentParser(prog='mx ctw') |
1369 parser.add_argument('--ctwopts', action='store', help='space separated Graal options (without the -G: prefix) used for CTW compilations') | 1371 parser.add_argument('--ctwopts', action='store', help='space separated Graal options used for CTW compilations (default: --ctwopts="' + defaultCtwopts + '")', default=defaultCtwopts, metavar='<options>') |
1370 parser.add_argument('--jar', action='store', help='jar of classes to compiled instead of rt.jar') | 1372 parser.add_argument('--jar', action='store', help='jar of classes to compiled instead of rt.jar', metavar='<path>') |
1371 parser.add_argument('vmargs', nargs=REMAINDER, metavar='VM options...') | 1373 parser.add_argument('vmargs', nargs=REMAINDER, metavar='VM options...') |
1372 | 1374 |
1373 args, vmargs = parser.parse_known_args(args) | 1375 args, vmargs = parser.parse_known_args(args) |
1374 | 1376 |
1375 if args.ctwopts: | 1377 if args.ctwopts: |