Mercurial > hg > truffle
comparison mx/commands.py @ 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 | 806821a1c0a8 |
children | 6d1870a7554a |
comparison
equal
deleted
inserted
replaced
6690:a14a452cf154 | 6691:9611d0ccb4ec |
---|---|
619 'includes' : ':'.join(includes), | 619 'includes' : ':'.join(includes), |
620 'excludes' : ':'.join(excludes), | 620 'excludes' : ':'.join(excludes), |
621 'destfile' : 'jacoco.exec' | 621 'destfile' : 'jacoco.exec' |
622 } | 622 } |
623 args = ['-javaagent:' + jacocoagent.get_path(True) + '=' + ','.join([k + '=' + v for k, v in agentOptions.items()])] + args | 623 args = ['-javaagent:' + jacocoagent.get_path(True) + '=' + ','.join([k + '=' + v for k, v in agentOptions.items()])] + args |
624 if '-d64' not in args: | |
625 args = ['-d64'] + args | |
626 print ['args = '] + args | |
624 exe = join(jdk, 'bin', mx.exe_suffix('java')) | 627 exe = join(jdk, 'bin', mx.exe_suffix('java')) |
625 dbg = _native_dbg.split() if _native_dbg is not None else [] | 628 dbg = _native_dbg.split() if _native_dbg is not None else [] |
626 return mx.run(dbg + [exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) | 629 return mx.run(dbg + [exe, '-' + vm] + args, nonZeroIsFatal=nonZeroIsFatal, out=out, err=err, cwd=cwd, timeout=timeout) |
627 | 630 |
628 def _find_classes_with_annotations(p, pkgRoot, annotations, includeInnerClasses=False): | 631 def _find_classes_with_annotations(p, pkgRoot, annotations, includeInnerClasses=False): |