Mercurial > hg > graal-jvmci-8
diff mx.jvmci/mx_jvmci.py @ 22603:2448e3c0cd98
set default jvmci.compiler property explicitly based on available suites
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 22 Sep 2015 23:14:18 +0200 |
parents | bc2d4dac0cd3 |
children | 0851eafff5c9 |
line wrap: on
line diff
--- a/mx.jvmci/mx_jvmci.py Tue Sep 22 22:35:02 2015 +0200 +++ b/mx.jvmci/mx_jvmci.py Tue Sep 22 23:14:18 2015 +0200 @@ -1770,6 +1770,14 @@ args = ['-Xbootclasspath/p:' + dep.classpath_repr() for dep in _jvmci_bootclasspath_prepends] + args + # Set the default JVMCI compiler + for jdkDist in reversed(jdkDeployedDists): + if isinstance(jdkDist, JvmciJDKDeployedDist): + if jdkDist._compilers: + jvmciCompiler = jdkDist._compilers[-1] + args = ['-Djvmci.compiler=' + jvmciCompiler] + args + break + if '-version' in args: ignoredArgs = args[args.index('-version') + 1:] if len(ignoredArgs) > 0: