Mercurial > hg > truffle
changeset 4146:4eb5b2469b6f
Fixed 'build' command.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 19 Dec 2011 21:48:32 +0100 |
parents | 9aee7df31417 |
children | 55376d8953a6 |
files | mx/commands.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/commands.py Mon Dec 19 20:56:59 2011 +0100 +++ b/mx/commands.py Mon Dec 19 21:48:32 2011 +0100 @@ -180,7 +180,12 @@ The optional argument specifies what type of VM to build.""" - mx.build([]) + build = 'product' + if len(args) != 0 and not args[len(args) - 1].startswith('-'): + build = args.pop() + + # Call mx.build to compile the Java sources + mx.build(args) def fix_jvm_cfg(jdk): jvmCfg = join(jdk, 'jre', 'lib', 'amd64', 'jvm.cfg') @@ -198,7 +203,7 @@ with open(jvmCfg, 'a') as f: f.write('-graal KNOWN\n') - build = 'product' if len(args) == 0 else args[0] + jdk7 = _jdk7(build, True) if build == 'debug': build = 'jvmg'