diff mx/mx_graal.py @ 17317:f434913f9cba

mx: buildvms should inherit verbosity
author Bernhard Urban <bernhard.urban@jku.at>
date Thu, 02 Oct 2014 05:23:02 -0700
parents f0364a8ec40e
children c75bb9cd1994
line wrap: on
line diff
--- a/mx/mx_graal.py	Thu Oct 02 14:22:16 2014 +0200
+++ b/mx/mx_graal.py	Thu Oct 02 05:23:02 2014 -0700
@@ -1311,9 +1311,11 @@
                 log = open(join(_graal_home, logFile), 'wb')
                 start = time.time()
                 mx.log('BEGIN: ' + v + '-' + vmbuild + '\t(see: ' + logFile + ')')
+                verbose = ['-v'] if mx._opts.verbose else []
                 # Run as subprocess so that output can be directed to a file
-                subprocess.check_call([sys.executable, '-u', join('mxtool', 'mx.py'), '--vm', v, '--vmbuild',
-                                       vmbuild, 'build'], cwd=_graal_home, stdout=log, stderr=subprocess.STDOUT)
+                cmd = [sys.executable, '-u', join('mxtool', 'mx.py')] + verbose + ['--vm', v, '--vmbuild', vmbuild, 'build']
+                mx.logv("executing command: " + str(cmd))
+                subprocess.check_call(cmd, cwd=_graal_home, stdout=log, stderr=subprocess.STDOUT)
                 duration = datetime.timedelta(seconds=time.time() - start)
                 mx.log('END:   ' + v + '-' + vmbuild + '\t[' + str(duration) + ']')
             else: