Mercurial > hg > graal-jvmci-8
comparison mx.jvmci/mx_jvmci.py @ 22614:0851eafff5c9
Minor -G option parsing fixes
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 24 Sep 2015 20:51:57 -0700 |
parents | 2448e3c0cd98 |
children | 8a837db73b92 |
comparison
equal
deleted
inserted
replaced
22613:9409f7cec59a | 22614:0851eafff5c9 |
---|---|
1758 args = jacocoArgs + args | 1758 args = jacocoArgs + args |
1759 | 1759 |
1760 # Support for -G: options | 1760 # Support for -G: options |
1761 def translateGOption(arg): | 1761 def translateGOption(arg): |
1762 if arg.startswith('-G:+'): | 1762 if arg.startswith('-G:+'): |
1763 if '=' in arg: | |
1764 mx.abort('Mixing + and = in -G: option specification: ' + arg) | |
1763 arg = '-Djvmci.option.' + arg[len('-G:+'):] + '=true' | 1765 arg = '-Djvmci.option.' + arg[len('-G:+'):] + '=true' |
1764 elif arg.startswith('-G:-'): | 1766 elif arg.startswith('-G:-'): |
1767 if '=' in arg: | |
1768 mx.abort('Mixing - and = in -G: option specification: ' + arg) | |
1765 arg = '-Djvmci.option.' + arg[len('-G:+'):] + '=false' | 1769 arg = '-Djvmci.option.' + arg[len('-G:+'):] + '=false' |
1766 elif arg.startswith('-G:'): | 1770 elif arg.startswith('-G:'): |
1767 arg = '-Djvmci.option.' + arg[len('-G:'):] | 1771 arg = '-Djvmci.option.' + arg[len('-G:'):] |
1768 return arg | 1772 return arg |
1769 args = map(translateGOption, args) | 1773 args = map(translateGOption, args) |