Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 21615:838f005f9aec
handle service filtering that returns an empty result
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 31 May 2015 14:30:13 +0200 |
parents | 60154926b513 |
children | abcb811659e0 |
comparison
equal
deleted
inserted
replaced
21614:2f92172fa320 | 21615:838f005f9aec |
---|---|
553 types available in 'classpath' implementing or extending | 553 types available in 'classpath' implementing or extending |
554 com.oracle.jvmci.service.Service. | 554 com.oracle.jvmci.service.Service. |
555 """ | 555 """ |
556 _, binDir = mx._compile_mx_class('FilterTypes', os.pathsep.join(classpath), myDir=dirname(__file__)) | 556 _, binDir = mx._compile_mx_class('FilterTypes', os.pathsep.join(classpath), myDir=dirname(__file__)) |
557 cmd = [mx.java().java, '-cp', mx._cygpathU2W(os.pathsep.join([binDir] + classpath)), 'FilterTypes', 'com.oracle.jvmci.service.Service'] + serviceImplNames | 557 cmd = [mx.java().java, '-cp', mx._cygpathU2W(os.pathsep.join([binDir] + classpath)), 'FilterTypes', 'com.oracle.jvmci.service.Service'] + serviceImplNames |
558 return subprocess.check_output(cmd, stderr=subprocess.PIPE).split('|') | 558 services = subprocess.check_output(cmd, stderr=subprocess.PIPE) |
559 if len(services) == 0: | |
560 return [] | |
561 return services.split('|') | |
559 | 562 |
560 def _extractJVMCIFiles(jdkJars, jvmciJars, servicesDir, optionsDir, cleanDestination=True): | 563 def _extractJVMCIFiles(jdkJars, jvmciJars, servicesDir, optionsDir, cleanDestination=True): |
561 if cleanDestination: | 564 if cleanDestination: |
562 if exists(servicesDir): | 565 if exists(servicesDir): |
563 shutil.rmtree(servicesDir) | 566 shutil.rmtree(servicesDir) |