# HG changeset patch # User Doug Simon # Date 1324327712 -3600 # Node ID 4eb5b2469b6fd80f1ce8640340b2cf0a098de188 # Parent 9aee7df3141709cbea7f9d51f6493f543d58ee6e Fixed 'build' command. diff -r 9aee7df31417 -r 4eb5b2469b6f mx/commands.py --- 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'