Mercurial > hg > graal-compiler
changeset 22060:acd43093257d
add -verbose to javac and JDT when -V mx option is present
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 23 Jun 2015 12:41:17 +0200 |
parents | a694f0c9864f |
children | 5b3e245aca2b |
files | mxtool/mx.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mxtool/mx.py Tue Jun 23 11:44:20 2015 +0200 +++ b/mxtool/mx.py Tue Jun 23 12:41:17 2015 +0200 @@ -2816,6 +2816,8 @@ javac = args.alt_javac if args.alt_javac else mainJava.javac self.logCompilation('javac' if not args.alt_javac else args.alt_javac) javacCmd = [javac, '-g', '-J-Xmx1g', '-source', compliance, '-target', compliance, '-classpath', cp, '-d', outputDir] + if _opts.very_verbose: + javacCmd.append('-verbose') jdk.javacLibOptions(javacCmd) if _opts.java_dbg_port is not None: javacCmd += ['-J-Xdebug', '-J-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(_opts.java_dbg_port)] @@ -2829,6 +2831,8 @@ self.logCompilation('javac (with error-prone)') javaArgs = ['-Xmx1g'] javacArgs = ['-g', '-source', compliance, '-target', compliance, '-classpath', cp, '-d', outputDir] + if _opts.very_verbose: + javacArgs.append('-verbose') jdk.javacLibOptions(javacCmd) javacArgs += processorArgs javacArgs += ['@' + argfile.name] @@ -2843,6 +2847,8 @@ jdtArgs = ['-' + compliance, '-cp', cp, '-g', '-enableJavadoc', '-d', outputDir] + if _opts.very_verbose: + jdtArgs.append('-verbose') jdk.javacLibOptions(jdtArgs) jdtArgs += processorArgs