Mercurial > hg > graal-jvmci-8
diff mx/mx_graal.py @ 14965:c64cd1dd4bd1
moved Maven installation of Graal dependency from build to jmh command
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 03 Apr 2014 20:54:30 +0200 |
parents | 9d32e87ea98b |
children | cc844a4512f1 |
line wrap: on
line diff
--- a/mx/mx_graal.py Thu Apr 03 20:53:52 2014 +0200 +++ b/mx/mx_graal.py Thu Apr 03 20:54:30 2014 +0200 @@ -404,15 +404,6 @@ graalJar = graalDist.path jdks = _jdksDir() - m2Install = mx.get_env('MAVEN_INSTALL_GRAAL_JAR', None) - if m2Install and m2Install.lower() == 'true': - cmd = ['mvn', 'install:install-file', '-q', - '-Dfile=' + graalJar, '-DgroupId=com.oracle.graal', '-DartifactId=graal', - '-Dversion=1.0-SNAPSHOT', '-Dpackaging=jar'] - if graalDist.sourcesPath: - cmd = cmd + ['-Dsources=' + graalDist.sourcesPath] - mx.run(cmd) - if exists(jdks): for e in os.listdir(jdks): jreLibDir = join(jdks, e, 'jre', 'lib') @@ -1363,6 +1354,18 @@ def _blackhole(x): mx.logv(x[:-1]) + + + # (Re)install graal.jar into the local m2 repository since the micros-graal + # benchmarks have it as a dependency + graalDist = mx.distribution('GRAAL') + cmd = ['mvn', 'install:install-file', '-q', + '-Dfile=' + graalDist.path, '-DgroupId=com.oracle.graal', '-DartifactId=graal', + '-Dversion=1.0-SNAPSHOT', '-Dpackaging=jar'] + if graalDist.sourcesPath: + cmd = cmd + ['-Dsources=' + graalDist.sourcesPath] + mx.run(cmd) + mx.log("Building benchmarks...") mx.run(['mvn', 'package'], cwd=jmhPath, out=_blackhole)