Mercurial > hg > graal-jvmci-8
comparison mx/commands.py @ 12647:b038b643a3a4
restricted BootstrapGraal option to GRAALVM builds only
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 30 Oct 2013 21:49:04 +0100 |
parents | 868dba721f1e |
children | c6b833f7935e |
comparison
equal
deleted
inserted
replaced
12646:0046afcda972 | 12647:b038b643a3a4 |
---|---|
819 os.close(_) | 819 os.close(_) |
820 | 820 |
821 def harness(projectscp, vmArgs): | 821 def harness(projectscp, vmArgs): |
822 if not exists(javaClass) or getmtime(javaClass) < getmtime(javaSource): | 822 if not exists(javaClass) or getmtime(javaClass) < getmtime(javaSource): |
823 subprocess.check_call([mx.java().javac, '-cp', projectscp, '-d', mxdir, javaSource]) | 823 subprocess.check_call([mx.java().javac, '-cp', projectscp, '-d', mxdir, javaSource]) |
824 if not isGraalEnabled(_get_vm()): | 824 if _get_vm() != 'graal': |
825 prefixArgs = ['-esa', '-ea'] | 825 prefixArgs = ['-esa', '-ea'] |
826 else: | 826 else: |
827 prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] | 827 prefixArgs = ['-XX:-BootstrapGraal', '-esa', '-ea'] |
828 with open(testfile) as fp: | 828 with open(testfile) as fp: |
829 testclasses = [l.rstrip() for l in fp.readlines()] | 829 testclasses = [l.rstrip() for l in fp.readlines()] |