Mercurial > hg > truffle
changeset 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 | 2f92172fa320 |
children | 4c146c9367b6 d2113f5ae550 ae601ad0b023 |
files | mx/mx_graal.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mx/mx_graal.py Sun May 31 13:42:47 2015 +0200 +++ b/mx/mx_graal.py Sun May 31 14:30:13 2015 +0200 @@ -555,7 +555,10 @@ """ _, binDir = mx._compile_mx_class('FilterTypes', os.pathsep.join(classpath), myDir=dirname(__file__)) cmd = [mx.java().java, '-cp', mx._cygpathU2W(os.pathsep.join([binDir] + classpath)), 'FilterTypes', 'com.oracle.jvmci.service.Service'] + serviceImplNames - return subprocess.check_output(cmd, stderr=subprocess.PIPE).split('|') + services = subprocess.check_output(cmd, stderr=subprocess.PIPE) + if len(services) == 0: + return [] + return services.split('|') def _extractJVMCIFiles(jdkJars, jvmciJars, servicesDir, optionsDir, cleanDestination=True): if cleanDestination: