Mercurial > hg > truffle
comparison mx/mx_graal.py @ 16629:be59a1d39281
respect dependency order between distributions when building them
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 31 Jul 2014 14:43:37 +0200 |
parents | d3fec84757ed |
children | 07a4ed7c66a3 |
comparison
equal
deleted
inserted
replaced
16628:d3fec84757ed | 16629:be59a1d39281 |
---|---|
533 mx.update_file(graalRuntime_inline_hpp, tmp.getvalue()) | 533 mx.update_file(graalRuntime_inline_hpp, tmp.getvalue()) |
534 | 534 |
535 # Store SHA1 in generated Java class and append class to specified jar | 535 # Store SHA1 in generated Java class and append class to specified jar |
536 javaSource = join(_graal_home, 'GeneratedSourcesSha1.java') | 536 javaSource = join(_graal_home, 'GeneratedSourcesSha1.java') |
537 javaClass = join(_graal_home, 'GeneratedSourcesSha1.class') | 537 javaClass = join(_graal_home, 'GeneratedSourcesSha1.class') |
538 with open (javaSource, 'w') as fp: | 538 with open(javaSource, 'w') as fp: |
539 print >> fp, 'class GeneratedSourcesSha1 { private static final String value = "' + sha1 + '"; }' | 539 print >> fp, 'class GeneratedSourcesSha1 { private static final String value = "' + sha1 + '"; }' |
540 subprocess.check_call([mx.java().javac, '-d', _graal_home, javaSource], stderr=subprocess.PIPE, stdout=subprocess.PIPE) | 540 subprocess.check_call([mx.java().javac, '-d', _graal_home, javaSource], stderr=subprocess.PIPE, stdout=subprocess.PIPE) |
541 zf = zipfile.ZipFile(dist.path, 'a') | 541 zf = zipfile.ZipFile(dist.path, 'a') |
542 with open(javaClass, 'rb') as fp: | 542 with open(javaClass, 'rb') as fp: |
543 zf.writestr(os.path.basename(javaClass), fp.read()) | 543 zf.writestr(os.path.basename(javaClass), fp.read()) |