# HG changeset patch # User Doug Simon # Date 1433075413 -7200 # Node ID 838f005f9aec49d68380a0fa086a3eff2d3b177c # Parent 2f92172fa320466e42af0224eec038a726179311 handle service filtering that returns an empty result diff -r 2f92172fa320 -r 838f005f9aec mx/mx_graal.py --- 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: