Skip to content

Commit

Permalink
Use BASE_DIR as working directory when requesting the graalvm-home
Browse files Browse the repository at this point in the history
Otherwise, it will execute mx in the wrong working directory.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Feb 4, 2024
1 parent ff8bd78 commit 8447795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion som
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_compiled_graalvm_java_bin(use_libgraal):
mx = find_mx()
libgraal_jdk_home = check_output(
[mx, '--env', 'libgraal' if use_libgraal else 'graal', 'graalvm-home'],
stderr=STDOUT
stderr=STDOUT, cwd=BASE_DIR
).decode()
return libgraal_jdk_home.strip() + '/bin/java'

Expand Down

0 comments on commit 8447795

Please sign in to comment.