comparison mx.graal/suite.py @ 22888:9021de742f55

specify tag="default" in call to mx.get_jdk()
author Doug Simon <doug.simon@oracle.com>
date Mon, 26 Oct 2015 00:07:23 +0100
parents 86dacea931a2
children bc231bc8bf76
comparison
equal deleted inserted replaced
22887:a9b332b34123 22888:9021de742f55
1 import mx 1 import mx
2 JDK9 = mx.get_jdk().javaCompliance >= "1.9" 2 JDK9 = mx.get_jdk(tag='default').javaCompliance >= "1.9"
3 _8_9 = "1.9" if JDK9 else "1.8" 3 _8_9 = "1.9" if JDK9 else "1.8"
4 4
5 def deps(l): 5 def deps(l):
6 """ Filters out dependencies starting with 'jvmci:' if using JDK9. """ 6 """ Filters out dependencies starting with 'jvmci:' if using JDK9. """
7 return [d for d in l if not JDK9 or not d.startswith("jvmci:")] 7 return [d for d in l if not JDK9 or not d.startswith("jvmci:")]