changeset 6691:9611d0ccb4ec

Automatically add -d64 vm options when running graal
author Laurent Daynes <Laurent.Daynes@oracle.com>
date Fri, 09 Nov 2012 15:23:35 +0100
parents a14a452cf154
children 349127dc59de 6d1870a7554a
files mx/commands.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Fri Nov 09 13:35:26 2012 +0100
+++ b/mx/commands.py	Fri Nov 09 15:23:35 2012 +0100
@@ -621,6 +621,9 @@
                         'destfile' : 'jacoco.exec'
         }
         args = ['-javaagent:' + jacocoagent.get_path(True) + '=' + ','.join([k + '=' + v for k, v in agentOptions.items()])] + args
+    if '-d64' not in args:
+        args = ['-d64'] + args
+    print ['args = '] + args    
     exe = join(jdk, 'bin', mx.exe_suffix('java'))
     dbg = _native_dbg.split() if _native_dbg is not None else []
     return mx.run(dbg + [exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout)