comparison 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
comparison
equal deleted inserted replaced
17316:e6e678c3818f 17317:f434913f9cba
1309 if not args.console: 1309 if not args.console:
1310 logFile = join(v + '-' + vmbuild + '.log') 1310 logFile = join(v + '-' + vmbuild + '.log')
1311 log = open(join(_graal_home, logFile), 'wb') 1311 log = open(join(_graal_home, logFile), 'wb')
1312 start = time.time() 1312 start = time.time()
1313 mx.log('BEGIN: ' + v + '-' + vmbuild + '\t(see: ' + logFile + ')') 1313 mx.log('BEGIN: ' + v + '-' + vmbuild + '\t(see: ' + logFile + ')')
1314 verbose = ['-v'] if mx._opts.verbose else []
1314 # Run as subprocess so that output can be directed to a file 1315 # Run as subprocess so that output can be directed to a file
1315 subprocess.check_call([sys.executable, '-u', join('mxtool', 'mx.py'), '--vm', v, '--vmbuild', 1316 cmd = [sys.executable, '-u', join('mxtool', 'mx.py')] + verbose + ['--vm', v, '--vmbuild', vmbuild, 'build']
1316 vmbuild, 'build'], cwd=_graal_home, stdout=log, stderr=subprocess.STDOUT) 1317 mx.logv("executing command: " + str(cmd))
1318 subprocess.check_call(cmd, cwd=_graal_home, stdout=log, stderr=subprocess.STDOUT)
1317 duration = datetime.timedelta(seconds=time.time() - start) 1319 duration = datetime.timedelta(seconds=time.time() - start)
1318 mx.log('END: ' + v + '-' + vmbuild + '\t[' + str(duration) + ']') 1320 mx.log('END: ' + v + '-' + vmbuild + '\t[' + str(duration) + ']')
1319 else: 1321 else:
1320 with VM(v, vmbuild): 1322 with VM(v, vmbuild):
1321 build([]) 1323 build([])