Mercurial > hg > graal-jvmci-8
comparison mx/mx_graal.py @ 15229:5c9185d42a3a
mx: use server VM to build JMH
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 18 Apr 2014 13:40:31 +0200 |
parents | bc21a3b4d6d3 |
children | 4c68a0eb69ca |
comparison
equal
deleted
inserted
replaced
15228:bc21a3b4d6d3 | 15229:5c9185d42a3a |
---|---|
1478 if mx._opts.verbose: | 1478 if mx._opts.verbose: |
1479 mx.log(x[:-1]) | 1479 mx.log(x[:-1]) |
1480 else: | 1480 else: |
1481 buildOutput.append(x) | 1481 buildOutput.append(x) |
1482 env = os.environ.copy() | 1482 env = os.environ.copy() |
1483 env['JAVA_HOME'] = _jdk(vmToCheck='graal') | 1483 env['JAVA_HOME'] = _jdk(vmToCheck='server') |
1484 env['MAVEN_OPTS'] = '-graal' | 1484 env['MAVEN_OPTS'] = '-server' |
1485 mx.log("Building benchmarks...") | 1485 mx.log("Building benchmarks...") |
1486 retcode = mx.run(['mvn', 'package'], cwd=jmhPath, out=_redirect, env=env, nonZeroIsFatal=False) | 1486 retcode = mx.run(['mvn', 'package'], cwd=jmhPath, out=_redirect, env=env, nonZeroIsFatal=False) |
1487 if retcode != 0: | 1487 if retcode != 0: |
1488 mx.log(''.join(buildOutput)) | 1488 mx.log(''.join(buildOutput)) |
1489 mx.abort(retcode) | 1489 mx.abort(retcode) |