File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,9 @@ def javavm_build_args():
115
115
result += mx_sdk_vm_impl .svm_experimental_options (['-H:+DumpThreadStacksOnSignal' , '-H:+CopyLanguageResources' ])
116
116
if mx_sdk_vm_ng .get_bootstrap_graalvm_version () >= mx .VersionSpec ("25.0" ):
117
117
result .append ('-H:-IncludeLanguageResources' )
118
- if mx .is_linux () and mx .get_os_variant () != "musl" :
118
+ if mx .is_linux () and (mx .get_os_variant () != "musl" and mx_subst .path_substitutions .substitute ("<multitarget_libc_selection>" ) == "glibc" ):
119
+ # Currently only enabled if the native image build runs on glibc and also targets glibc.
120
+ # In practice it's enough that host and target are matching, but we do not get this info out of mx.
119
121
result += [
120
122
'-Dpolyglot.image-build-time.PreinitializeContexts=java' ,
121
123
'-Dpolyglot.image-build-time.PreinitializeContextsWithNative=true' ,
You can’t perform that action at this time.
0 commit comments