# HG changeset patch # User Bernhard Urban # Date 1412252582 25200 # Node ID f434913f9cba47724b3c20fbc441abb193031e2f # Parent e6e678c3818fed24646ae80894f655b05ac8fe4a mx: buildvms should inherit verbosity diff -r e6e678c3818f -r f434913f9cba mx/mx_graal.py --- 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: