8000 Fix jdk home on macos · oracle/graalpython@d64b2e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d64b2e4

Browse files
committed
Fix jdk home on macos
1 parent ab900d4 commit d64b2e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,9 @@ def graalvm_jdk():
704704
if graal_jdk_home:
705705
graal_jdk_home = os.path.abspath(glob.glob(graal_jdk_home)[0])
706706
if sys.platform == "darwin":
707-
graal_jdk_home = os.path.join(graal_jdk_home, 'Contents', 'Home')
707+
jdk_home_subdir = os.path.join(graal_jdk_home, 'Contents', 'Home')
708+
if os.path.exists(jdk_home_subdir):
709+
graal_jdk_home = jdk_home_subdir
708710
mx.log("Using Graal from GRAAL_JDK_HOME: " + graal_jdk_home)
709711

710712
# Try to verify that we're getting what we expect:

0 commit comments

Comments
 (0)
0