diff mx/mx_graal.py @ 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 3f350b0d93c9
children d8343c347dc0
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)