Mercurial > hg > truffle
changeset 16031:cd2209d3af46
mx: show the environment variables defined and make command line issued when doing a HotSpot build
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 05 Jun 2014 11:08:13 +0200 |
parents | bddb3eb57e90 |
children | 8beba154719b |
files | mx/mx_graal.py |
diffstat | 1 files changed, 11 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/mx_graal.py Thu Jun 05 11:05:46 2014 +0200 +++ b/mx/mx_graal.py Thu Jun 05 11:08:13 2014 +0200 @@ -802,13 +802,19 @@ env.pop('LD_LIBRARY_PATH', None) env.pop('CLASSPATH', None) - if mx._opts.verbose: - # Issue an env prefix that can be used to run the make on the command line - envPrefix = ' '.join([key + '=' + env[key] for key in env.iterkeys() if not os.environ.has_key(key) or env[key] != os.environ[key]]) - if len(envPrefix): - mx.log('env ' + envPrefix + ' \\') + # Issue an env prefix that can be used to run the make on the command line + if not mx._opts.verbose: + mx.log('--------------- make command line ----------------------') + + envPrefix = ' '.join([key + '=' + env[key] for key in env.iterkeys() if not os.environ.has_key(key) or env[key] != os.environ[key]]) + if len(envPrefix): + mx.log('env ' + envPrefix + ' \\') runCmd.append(build + buildSuffix) + + if not mx._opts.verbose: + mx.log(' '.join(runCmd)) + mx.log('--------------------------------------------------------') mx.run(runCmd, err=filterXusage, env=env) jvmCfg = _vmCfgInJdk(jdk)