comparison mx/mx_graal.py @ 15576:0c0b479903bb

mx trufflejar: use distribution feature of mx instead (`mx archive @TRUFFLE')
author Bernhard Urban <bernhard.urban@jku.at>
date Fri, 09 May 2014 13:56:10 +0200
parents cb2f3c49deb2
children 406a94c03ffa
comparison
equal deleted inserted replaced
15575:cb2f3c49deb2 15576:0c0b479903bb
1796 1796
1797 def sl(args): 1797 def sl(args):
1798 """run an SL program""" 1798 """run an SL program"""
1799 vmArgs, slArgs = _extract_VM_args(args) 1799 vmArgs, slArgs = _extract_VM_args(args)
1800 vm(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl"), "com.oracle.truffle.sl.SLMain"] + slArgs) 1800 vm(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl"), "com.oracle.truffle.sl.SLMain"] + slArgs)
1801
1802 def trufflejar(args=None):
1803 """make truffle.jar"""
1804
1805 # Test with the built classes
1806 _unittest(["com.oracle.truffle.api.test", "com.oracle.truffle.api.dsl.test"], ['@Test', '@Parameters'])
1807
1808 # We use the DSL processor as the starting point for the classpath - this
1809 # therefore includes the DSL processor, the DSL and the API.
1810 packagejar(mx.classpath("com.oracle.truffle.dsl.processor").split(os.pathsep), "truffle.jar", None, "com.oracle.truffle.dsl.processor.TruffleProcessor")
1811
1812 # Test with the JAR
1813 _unittest(["com.oracle.truffle.api.test", "com.oracle.truffle.api.dsl.test"], ['@Test', '@Parameters'], "truffle.jar:")
1814
1815 1801
1816 def isGraalEnabled(vm): 1802 def isGraalEnabled(vm):
1817 return vm != 'original' and not vm.endswith('nograal') 1803 return vm != 'original' and not vm.endswith('nograal')
1818 1804
1819 def site(args): 1805 def site(args):
2040 'vm': [vm, '[-options] class [args...]'], 2026 'vm': [vm, '[-options] class [args...]'],
2041 'vmg': [vmg, '[-options] class [args...]'], 2027 'vmg': [vmg, '[-options] class [args...]'],
2042 'vmfg': [vmfg, '[-options] class [args...]'], 2028 'vmfg': [vmfg, '[-options] class [args...]'],
2043 'deoptalot' : [deoptalot, '[n]'], 2029 'deoptalot' : [deoptalot, '[n]'],
2044 'longtests' : [longtests, ''], 2030 'longtests' : [longtests, ''],
2045 'sl' : [sl, '[SL args|@VM options]'], 2031 'sl' : [sl, '[SL args|@VM options]']
2046 'trufflejar' : [trufflejar, '']
2047 } 2032 }
2048 2033
2049 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) 2034 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])
2050 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') 2035 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>')
2051 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' + 2036 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' +