Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 19182:8cd798884d60
generateZshCompletions should include diagnostic VM options and supoprt completion for more mx commands
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Fri, 06 Feb 2015 11:32:26 -0800 |
parents | 32c7a5a88523 |
children | 5414f848de51 |
comparison
equal
deleted
inserted
replaced
19181:9ee881900cf5 | 19182:8cd798884d60 |
---|---|
2278 complt += '\t\t;;\n' | 2278 complt += '\t\t;;\n' |
2279 | 2279 |
2280 complt += '\t(args)\n' | 2280 complt += '\t(args)\n' |
2281 # TODO: improve matcher: if mx args are given, this doesn't work | 2281 # TODO: improve matcher: if mx args are given, this doesn't work |
2282 complt += '\t\tcase $line[1] in\n' | 2282 complt += '\t\tcase $line[1] in\n' |
2283 complt += '\t\t\t(vm)\n' | 2283 complt += '\t\t\t(vm | vmg | vmfg | unittest | jmh | dacapo | scaladacapo | specjvm2008 | specjbb2013 | specjbb2005)\n' |
2284 complt += '\t\t\t\tnoglob \\\n' | 2284 complt += '\t\t\t\tnoglob \\\n' |
2285 complt += '\t\t\t\t\t_arguments -s -S \\\n' | 2285 complt += '\t\t\t\t\t_arguments -s -S \\\n' |
2286 complt += _appendOptions("graal", r"G\:") | 2286 complt += _appendOptions("graal", r"G\:") |
2287 # TODO: fix -XX:{-,+}Use* flags | 2287 # TODO: fix -XX:{-,+}Use* flags |
2288 complt += _appendOptions("hotspot", r"XX\:") | 2288 complt += _appendOptions("hotspot", r"XX\:") |
2345 'optDoc' : '<optDoc>', | 2345 'optDoc' : '<optDoc>', |
2346 })) | 2346 })) |
2347 | 2347 |
2348 # gather graal options | 2348 # gather graal options |
2349 output = StringIO.StringIO() | 2349 output = StringIO.StringIO() |
2350 vm(['-XX:-BootstrapGraal', '-G:+PrintFlags' if optionType == "graal" else '-XX:+PrintFlagsWithComments'], | 2350 vm(['-XX:-BootstrapGraal', '-XX:+UnlockDiagnosticVMOptions', '-G:+PrintFlags' if optionType == "graal" else '-XX:+PrintFlagsWithComments'], |
2351 vm="graal", | 2351 vm="graal", |
2352 vmbuild="optimized", | 2352 vmbuild="optimized", |
2353 nonZeroIsFatal=False, | 2353 nonZeroIsFatal=False, |
2354 out=output.write, | 2354 out=output.write, |
2355 err=subprocess.STDOUT) | 2355 err=subprocess.STDOUT) |