We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a1ef40 commit 42d6e95Copy full SHA for 42d6e95
graal-js/mx.graal-js/mx_graal_js.py
@@ -50,11 +50,15 @@
50
51
def get_jdk(forBuild=False):
52
# Graal.nodejs requires a JDK at build time, to be passed as argument to `./configure`.
53
+ # GraalVMJDKConfig (`tag='graalvm'`) is not available until all the components are built.
54
# GraalJVMCIJDKConfig (`tag='jvmci'`) is not available until all required jars are built.
- if not forBuild and mx.suite('compiler', fatalIfMissing=False):
55
- return mx.get_jdk(tag='jvmci')
56
- else:
57
- return mx.get_jdk()
+ if not forBuild:
+ jdk = mx.get_jdk(tag='graalvm')
+ if exists(jdk.home):
58
+ return jdk
59
+ elif mx.suite('compiler', fatalIfMissing=False):
60
+ return mx.get_jdk(tag='jvmci')
61
+ return mx.get_jdk()
62
63
class GraalJsDefaultTags:
64
default = 'default'
0 commit comments