# HG changeset patch # User Jaroslav Tulach # Date 1434532823 -7200 # Node ID 4e3e8d5221202baf3d1bd59ec462434c9725ed63 # Parent aab974a50deb765b5cd1b25820a9fe4b9894f26e Removal of --vmcwd option diff -r aab974a50deb -r 4e3e8d522120 mx/mx_truffle.py --- a/mx/mx_truffle.py Wed Jun 17 11:17:40 2015 +0200 +++ b/mx/mx_truffle.py Wed Jun 17 11:20:23 2015 +0200 @@ -71,9 +71,6 @@ It can also be temporarily set by using of a VM context manager object in a 'with' statement. """ _vmbuild = _vmbuildChoices[0] -""" The current working directory to switch to before running the VM. """ -_vm_cwd = None - """ Prefix for running the VM. """ _vm_prefix = None @@ -872,11 +869,6 @@ def _parseVmArgs(args, vm=None, cwd=None, vmbuild=None): """run the VM selected by the '--vm' option""" - if cwd is None: - cwd = _vm_cwd - elif _vm_cwd is not None and _vm_cwd != cwd: - mx.abort("conflicting working directories: do not set --vmcwd for this command") - jdk = mx.java().jdk mx.expand_project_in_args(args) exe = join(jdk, 'bin', mx.exe_suffix('java')) @@ -2221,8 +2213,6 @@ 'makefile' : [mx_graal_makefile.build_makefile, 'build makefiles for JDK build'], } - mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to before the VM is executed', default=None, metavar='') - if _vmSourcesAvailable: mx.add_argument('--vm', action='store', dest='vm', choices=_vmChoices.keys(), help='the VM type to build/run') mx.add_argument('--vmbuild', action='store', dest='vmbuild', choices=_vmbuildChoices, help='the VM build to build/run (default: ' + _vmbuildChoices[0] + ')') @@ -2254,8 +2244,6 @@ _vmbuild = opts.vmbuild global _make_eclipse_launch _make_eclipse_launch = getattr(opts, 'make_eclipse_launch', False) - global _vm_cwd - _vm_cwd = opts.vm_cwd global _vm_prefix _vm_prefix = opts.vm_prefix