diff 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
line wrap: on
line diff
--- a/mx.jvmci/mx_jvmci.py	Thu Sep 24 14:33:14 2015 +0200
+++ b/mx.jvmci/mx_jvmci.py	Thu Sep 24 20:51:57 2015 -0700
@@ -1760,8 +1760,12 @@
         # Support for -G: options
         def translateGOption(arg):
             if arg.startswith('-G:+'):
+                if '=' in arg:
+                    mx.abort('Mixing + and = in -G: option specification: ' + arg)
                 arg = '-Djvmci.option.' + arg[len('-G:+'):] + '=true'
             elif arg.startswith('-G:-'):
+                if '=' in arg:
+                    mx.abort('Mixing - and = in -G: option specification: ' + arg)
                 arg = '-Djvmci.option.' + arg[len('-G:+'):] + '=false'
             elif arg.startswith('-G:'):
                 arg = '-Djvmci.option.' + arg[len('-G:'):]