File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1853,7 +1853,7 @@ def _is_module_launcher():
18531853 def _get_extra_jvm_args ():
18541854 image_config = self .subject .native_image_config
18551855 extra_jvm_args = mx .list_to_cmd_line (image_config .extra_jvm_args )
1856- if not _jlink_libraries ():
1856+ if not _jlink_libraries () and _src_jdk_version >= 9 :
18571857 if mx .is_windows ():
18581858 extra_jvm_args = ' ' .join ([extra_jvm_args , r"--upgrade-module-path %location%\..\..\jvmci\graal.jar" ,
18591859 r"--add-modules org.graalvm.truffle,org.graalvm.sdk" ,
@@ -1869,7 +1869,7 @@ def _get_option_vars():
18691869 return ' ' .join (image_config .option_vars )
18701870
18711871 def _get_launcher_args ():
1872- if not _jlink_libraries ():
1872+ if not _jlink_libraries () and _src_jdk_version >= 9 :
18731873 return '-J--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=jdk.internal.vm.compiler'
18741874 return ''
18751875
You can’t perform that action at this time.
0 commit comments