Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 21653:ec47283499ef
Fail the build when there are compile errors
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Tue, 02 Jun 2015 11:27:04 +0200 |
parents | 0a2fc09f6ed6 |
children | 70649030d511 |
comparison
equal
deleted
inserted
replaced
21652:5f3dda39d205 | 21653:ec47283499ef |
---|---|
631 os.makedirs(d) | 631 os.makedirs(d) |
632 | 632 |
633 if canSymlink and 'symlink' in dir(os): | 633 if canSymlink and 'symlink' in dir(os): |
634 if exists(path): | 634 if exists(path): |
635 os.unlink(path) | 635 os.unlink(path) |
636 print 'Path ' + cachePath + ' path: ' + path | |
636 os.symlink(cachePath, path) | 637 os.symlink(cachePath, path) |
637 else: | 638 else: |
638 shutil.copy(cachePath, path) | 639 shutil.copy(cachePath, path) |
639 | 640 |
640 def _sha1Cached(): | 641 def _sha1Cached(): |
4427 out.element('equals', {'arg1' : '${no.dependencies}', 'arg2' : 'true'}) | 4428 out.element('equals', {'arg1' : '${no.dependencies}', 'arg2' : 'true'}) |
4428 out.close('condition') | 4429 out.close('condition') |
4429 | 4430 |
4430 out.close('target') | 4431 out.close('target') |
4431 out.open('target', {'name' : 'compile'}) | 4432 out.open('target', {'name' : 'compile'}) |
4432 out.open('exec', {'executable' : sys.executable}) | 4433 out.open('exec', {'executable' : sys.executable, 'failonerror' : 'true'}) |
4433 out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) | 4434 out.element('env', {'key' : 'JAVA_HOME', 'value' : jdk.jdk}) |
4434 out.element('arg', {'value' : os.path.abspath(__file__)}) | 4435 out.element('arg', {'value' : os.path.abspath(__file__)}) |
4435 out.element('arg', {'value' : 'build'}) | 4436 out.element('arg', {'value' : 'build'}) |
4436 out.element('arg', {'value' : '--only'}) | 4437 out.element('arg', {'value' : '--only'}) |
4437 out.element('arg', {'value' : p.name}) | 4438 out.element('arg', {'value' : p.name}) |