Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 8510:373d7774a14d
-Merge
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Fri, 22 Mar 2013 16:18:46 +0100 |
parents | 83fde86ae759 2d0160c35f8f |
children | 6ed17512f672 |
comparison
equal
deleted
inserted
replaced
8509:83fde86ae759 | 8510:373d7774a14d |
---|---|
756 (_, testfile) = tempfile.mkstemp(".testclasses", "graal") | 756 (_, testfile) = tempfile.mkstemp(".testclasses", "graal") |
757 | 757 |
758 def harness(projectscp, vmArgs): | 758 def harness(projectscp, vmArgs): |
759 if not exists(javaClass) or getmtime(javaClass) < getmtime(javaSource): | 759 if not exists(javaClass) or getmtime(javaClass) < getmtime(javaSource): |
760 subprocess.check_call([mx.java().javac, '-cp', projectscp, '-d', mxdir, javaSource]) | 760 subprocess.check_call([mx.java().javac, '-cp', projectscp, '-d', mxdir, javaSource]) |
761 prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] | 761 if _vm == 'server0': |
762 prefixArgs = ['-esa', '-ea'] | |
763 else: | |
764 prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] | |
762 vm(prefixArgs + vmArgs + ['-cp', projectscp + ':' + mxdir, name] + [testfile]) | 765 vm(prefixArgs + vmArgs + ['-cp', projectscp + ':' + mxdir, name] + [testfile]) |
763 | 766 |
764 try: | 767 try: |
765 _run_tests(args, harness, annotations, testfile) | 768 _run_tests(args, harness, annotations, testfile) |
766 finally: | 769 finally: |