Mercurial > hg > truffle
comparison mx/commands.py @ 12693:c6b833f7935e
mx sl: change vm args syntax
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Wed, 06 Nov 2013 14:14:09 +0100 |
parents | b038b643a3a4 |
children |
comparison
equal
deleted
inserted
replaced
12692:ffd4b6b4ae68 | 12693:c6b833f7935e |
---|---|
1329 elif len(args) > 1: | 1329 elif len(args) > 1: |
1330 mx.abort('jacocoreport takes only one argument : an output directory') | 1330 mx.abort('jacocoreport takes only one argument : an output directory') |
1331 mx.run_java(['-jar', jacocoreport.get_path(True), '-in', 'jacoco.exec', '-g', join(_graal_home, 'graal'), out]) | 1331 mx.run_java(['-jar', jacocoreport.get_path(True), '-in', 'jacoco.exec', '-g', join(_graal_home, 'graal'), out]) |
1332 | 1332 |
1333 def sl(args): | 1333 def sl(args): |
1334 """run an SL program | 1334 """run an SL program""" |
1335 | 1335 vmArgs, slArgs = _extract_VM_args(args) |
1336 VM args should have a @ prefix.""" | |
1337 vmArgs = [a[1:] for a in args if a[0] == '@'] | |
1338 slArgs = [a for a in args if a[0] != '@'] | |
1339 vm(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl"), "com.oracle.truffle.sl.SimpleLanguage"] + slArgs) | 1336 vm(vmArgs + ['-cp', mx.classpath("com.oracle.truffle.sl"), "com.oracle.truffle.sl.SimpleLanguage"] + slArgs) |
1340 | 1337 |
1341 def isGraalEnabled(vm): | 1338 def isGraalEnabled(vm): |
1342 return vm != 'original' and not vm.endswith('nograal') | 1339 return vm != 'original' and not vm.endswith('nograal') |
1343 | 1340 |