Mercurial > hg > truffle
comparison mx/mx_graal.py @ 21551:5324104ac4f3
moved com.oracle.graal.hotspot.jvmci classes to com.oracle.jvmci.hotspot module (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 26 May 2015 17:13:37 +0200 |
parents | ca14581fadc4 |
children | b1530a6cce8c |
comparison
equal
deleted
inserted
replaced
21550:f48a6cea31eb | 21551:5324104ac4f3 |
---|---|
511 os.unlink(toDelete) | 511 os.unlink(toDelete) |
512 | 512 |
513 def _makeHotspotGeneratedSourcesDir(): | 513 def _makeHotspotGeneratedSourcesDir(): |
514 """ | 514 """ |
515 Gets the directory containing all the HotSpot sources generated from | 515 Gets the directory containing all the HotSpot sources generated from |
516 Graal Java sources. This directory will be created if it doesn't yet exist. | 516 JVMCI Java sources. This directory will be created if it doesn't yet exist. |
517 """ | 517 """ |
518 hsSrcGenDir = join(mx.project('com.oracle.graal.hotspot').source_gen_dir(), 'hotspot') | 518 hsSrcGenDir = join(mx.project('com.oracle.jvmci.hotspot').source_gen_dir(), 'hotspot') |
519 if not exists(hsSrcGenDir): | 519 if not exists(hsSrcGenDir): |
520 os.makedirs(hsSrcGenDir) | 520 os.makedirs(hsSrcGenDir) |
521 return hsSrcGenDir | 521 return hsSrcGenDir |
522 | 522 |
523 def _update_graalRuntime_inline_hpp(dist): | 523 def _update_graalRuntime_inline_hpp(dist): |
555 print >> tmp, 'const char* GraalRuntime::_generated_sources_sha1 = "' + sha1 + '";' | 555 print >> tmp, 'const char* GraalRuntime::_generated_sources_sha1 = "' + sha1 + '";' |
556 | 556 |
557 mx.update_file(graalRuntime_inline_hpp, tmp.getvalue()) | 557 mx.update_file(graalRuntime_inline_hpp, tmp.getvalue()) |
558 | 558 |
559 # Store SHA1 in generated Java class and append class to specified jar | 559 # Store SHA1 in generated Java class and append class to specified jar |
560 javaPackageName = 'com.oracle.graal.hotspot.sourcegen' | 560 javaPackageName = 'com.oracle.jvmci.hotspot.sourcegen' |
561 javaClassName = javaPackageName + '.GeneratedSourcesSha1' | 561 javaClassName = javaPackageName + '.GeneratedSourcesSha1' |
562 javaSource = join(_graal_home, 'GeneratedSourcesSha1.java') | 562 javaSource = join(_graal_home, 'GeneratedSourcesSha1.java') |
563 javaClass = join(_graal_home, javaClassName.replace('.', os.path.sep) + '.class') | 563 javaClass = join(_graal_home, javaClassName.replace('.', os.path.sep) + '.class') |
564 with open(javaSource, 'w') as fp: | 564 with open(javaSource, 'w') as fp: |
565 print >> fp, 'package ' + javaPackageName + ';' | 565 print >> fp, 'package ' + javaPackageName + ';' |