# HG changeset patch # User Doug Simon # Date 1332506036 -3600 # Node ID 57546200db29fadadcb2e1cfa6098277b44305f7 # Parent cfdb3c24bd6caa82a6b55a037710090882fe9eb2 fixed comment and error message in commands.py diff -r cfdb3c24bd6c -r 57546200db29 mx/commands.py --- a/mx/commands.py Fri Mar 23 11:48:39 2012 +0100 +++ b/mx/commands.py Fri Mar 23 13:33:56 2012 +0100 @@ -437,9 +437,7 @@ if not 'Xusage.txt' in line: sys.stderr.write(line + os.linesep) - # Update graal_paths.hpp - #for p in mx.project('com.oracle.max.graal.hotspot').all_deps([], False): - # out.write(' prepend_to_graal_classpath(scp_compiler, graal_dir, "' + p.name + '");\n') + # Check that the declaration of graal_projects in arguments.cpp is up to date argumentsCpp = join(_graal_home, 'src', 'share', 'vm', 'runtime', 'arguments.cpp') assert exists(argumentsCpp), 'File does not exist: ' + argumentsCpp with open(argumentsCpp) as fp: @@ -454,9 +452,9 @@ missing = expected - actual extra = actual - expected if len(missing) != 0: - mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': add missing projects to declaration: ' + ','.join(missing)) + mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': add missing projects to declaration:\n ' + '\n '.join(missing)) if len(extra) != 0: - mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': remove projects from declaration: ' + ','.join(extra)) + mx.abort(fp.name + ':' + str(source[:start].count('\n') + 1) + ': remove projects from declaration:\n ' + '\n '.join(extra)) if platform.system() == 'Windows': compilelogfile = _graal_home + '/graalCompile.log'