comparison mx/mx_graal.py @ 14161:f14fb79ab265

made it an error to run the client VM on a Mac via mx (since the Mac java launcher translates '-client' to '-server')
author Doug Simon <doug.simon@oracle.com>
date Wed, 12 Mar 2014 21:48:51 +0100
parents dc41eab09fe8
children 10e07aaeb54f
comparison
equal deleted inserted replaced
14160:fd7fcd2d2072 14161:f14fb79ab265
715 def _parseVmArgs(args, vm=None, cwd=None, vmbuild=None): 715 def _parseVmArgs(args, vm=None, cwd=None, vmbuild=None):
716 """run the VM selected by the '--vm' option""" 716 """run the VM selected by the '--vm' option"""
717 717
718 if vm is None: 718 if vm is None:
719 vm = _get_vm() 719 vm = _get_vm()
720
721 if 'client' in vm and len(platform.mac_ver()[0]) != 0:
722 mx.abort("Client VM not supported: java launcher on Mac OS X translates '-client' to '-server'")
720 723
721 if cwd is None: 724 if cwd is None:
722 cwd = _vm_cwd 725 cwd = _vm_cwd
723 elif _vm_cwd is not None and _vm_cwd != cwd: 726 elif _vm_cwd is not None and _vm_cwd != cwd:
724 mx.abort("conflicting working directories: do not set --vmcwd for this command") 727 mx.abort("conflicting working directories: do not set --vmcwd for this command")