Mercurial > hg > graal-compiler
changeset 17317:f434913f9cba
mx: buildvms should inherit verbosity
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Thu, 02 Oct 2014 05:23:02 -0700 |
parents | e6e678c3818f |
children | c75bb9cd1994 |
files | mx/mx_graal.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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: