Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
22602:d3930fdd1eb3 | 22603:2448e3c0cd98 |
---|---|
1768 return arg | 1768 return arg |
1769 args = map(translateGOption, args) | 1769 args = map(translateGOption, args) |
1770 | 1770 |
1771 args = ['-Xbootclasspath/p:' + dep.classpath_repr() for dep in _jvmci_bootclasspath_prepends] + args | 1771 args = ['-Xbootclasspath/p:' + dep.classpath_repr() for dep in _jvmci_bootclasspath_prepends] + args |
1772 | 1772 |
1773 # Set the default JVMCI compiler | |
1774 for jdkDist in reversed(jdkDeployedDists): | |
1775 if isinstance(jdkDist, JvmciJDKDeployedDist): | |
1776 if jdkDist._compilers: | |
1777 jvmciCompiler = jdkDist._compilers[-1] | |
1778 args = ['-Djvmci.compiler=' + jvmciCompiler] + args | |
1779 break | |
1780 | |
1773 if '-version' in args: | 1781 if '-version' in args: |
1774 ignoredArgs = args[args.index('-version') + 1:] | 1782 ignoredArgs = args[args.index('-version') + 1:] |
1775 if len(ignoredArgs) > 0: | 1783 if len(ignoredArgs) > 0: |
1776 mx.log("Warning: The following options will be ignored by the vm because they come after the '-version' argument: " + ' '.join(ignoredArgs)) | 1784 mx.log("Warning: The following options will be ignored by the vm because they come after the '-version' argument: " + ' '.join(ignoredArgs)) |
1777 return self.processArgs(args, addDefaultArgs=addDefaultArgs) | 1785 return self.processArgs(args, addDefaultArgs=addDefaultArgs) |