Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 13514:0fbee3eb71f0
Ruby: import project.
author | Chris Seaton <chris.seaton@oracle.com> |
---|---|
date | Mon, 06 Jan 2014 17:12:09 +0000 |
parents | 51e16c7a5685 |
children | 44ecb4c8ed1f |
comparison
equal
deleted
inserted
replaced
13513:64a23ce736a0 | 13514:0fbee3eb71f0 |
---|---|
1361 | 1361 |
1362 | 1362 |
1363 def isGraalEnabled(vm): | 1363 def isGraalEnabled(vm): |
1364 return vm != 'original' and not vm.endswith('nograal') | 1364 return vm != 'original' and not vm.endswith('nograal') |
1365 | 1365 |
1366 def rubyShellCp(): | |
1367 return mx.classpath("com.oracle.truffle.ruby.shell") | |
1368 | |
1369 def rubyShellClass(): | |
1370 return "com.oracle.truffle.ruby.shell.Shell" | |
1371 | |
1372 def ruby(args): | |
1373 """run a Ruby program or shell""" | |
1374 vmArgs, rubyArgs = _extract_VM_args(args, useDoubleDash=True) | |
1375 vm(vmArgs + ['-cp', rubyShellCp(), rubyShellClass()] + rubyArgs) | |
1376 | |
1366 def site(args): | 1377 def site(args): |
1367 """create a website containing javadoc and the project dependency graph""" | 1378 """create a website containing javadoc and the project dependency graph""" |
1368 | 1379 |
1369 return mx.site(['--name', 'Graal', | 1380 return mx.site(['--name', 'Graal', |
1370 '--jd', '@-tag', '--jd', '@test:X', | 1381 '--jd', '@-tag', '--jd', '@test:X', |
1520 'vmfg': [vmfg, '[-options] class [args...]'], | 1531 'vmfg': [vmfg, '[-options] class [args...]'], |
1521 'deoptalot' : [deoptalot, '[n]'], | 1532 'deoptalot' : [deoptalot, '[n]'], |
1522 'longtests' : [longtests, ''], | 1533 'longtests' : [longtests, ''], |
1523 'sl' : [sl, '[SL args|@VM options]'], | 1534 'sl' : [sl, '[SL args|@VM options]'], |
1524 'trufflejar' : [trufflejar, ''], | 1535 'trufflejar' : [trufflejar, ''], |
1536 'ruby' : [ruby, '[Ruby args|@VM options]'] | |
1525 } | 1537 } |
1526 | 1538 |
1527 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) | 1539 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) |
1528 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') | 1540 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') |
1529 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' + | 1541 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' + |