Skip to content

Commit

Permalink
[GR-39148] Backport to 21.3 : Enables native-image script to handle m…
Browse files Browse the repository at this point in the history
…odule path with spaces.

PullRequest: graal/11972
  • Loading branch information
aelmassa committed Jun 15, 2022
2 parents 5f06a8f + 94f5f58 commit 122df1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk/mx.sdk/mx_sdk_vm_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1931,13 +1931,13 @@ def _get_extra_jvm_args():
extra_jvm_args = mx.list_to_cmd_line(image_config.extra_jvm_args)
if not _jlink_libraries() and _src_jdk_version >= 9:
if mx.is_windows():
extra_jvm_args = ' '.join([extra_jvm_args, r"--upgrade-module-path %location%\..\..\jvmci\graal.jar",
r"--add-modules org.graalvm.truffle,org.graalvm.sdk",
r"--module-path %location%\..\..\truffle\truffle-api.jar:%location%\..\..\jvmci\graal-sdk.jar"])
extra_jvm_args = ' '.join([extra_jvm_args, r'--upgrade-module-path "%location%\..\..\jvmci\graal.jar"',
r'--add-modules org.graalvm.truffle,org.graalvm.sdk',
r'--module-path "%location%\..\..\truffle\truffle-api.jar:%location%\..\..\jvmci\graal-sdk.jar"'])
else:
extra_jvm_args = ' '.join([extra_jvm_args, "--upgrade-module-path ${location}/../../jvmci/graal.jar",
"--add-modules org.graalvm.truffle,org.graalvm.sdk",
"--module-path ${location}/../../truffle/truffle-api.jar:${location}/../../jvmci/graal-sdk.jar"])
extra_jvm_args = ' '.join([extra_jvm_args, '--upgrade-module-path "${location}/../../jvmci/graal.jar"',
'--add-modules org.graalvm.truffle,org.graalvm.sdk',
'--module-path "${location}/../../truffle/truffle-api.jar:${location}/../../jvmci/graal-sdk.jar"'])
return extra_jvm_args

def _get_option_vars():
Expand Down

0 comments on commit 122df1d

Please sign in to comment.