File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -267,13 +267,17 @@ def libpythonvm_build_args():
267267 build_args = []
268268 build_args += bytecode_dsl_build_args ()
269269
270- if (
271- mx_sdk_vm_ng .is_nativeimage_ee ()
272- and mx .is_linux ()
273- and not os .environ .get ('NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE' )
274- and not _is_overridden_native_image_arg ("--gc" )
275- ):
276- build_args += ['--gc=G1' , '-H:-ProtectionKeys' ]
270+ if mx .is_linux ():
271+ if "musl" in mx_subst .path_substitutions .substitute ("<multitarget_libc_selection>" ):
272+ build_args += ['-H:+GraalOS' ]
273+ else :
274+ build_args += ["-Dpolyglot.image-build-time.PreinitializeContexts=python" ]
275+ if (
276+ mx_sdk_vm_ng .is_nativeimage_ee ()
277+ and not os .environ .get ('NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE' )
278+ and not _is_overridden_native_image_arg ("--gc" )
279+ ):
280+ build_args += ['--gc=G1' , '-H:-ProtectionKeys' ]
277281
278282 profile = None
279283 if (
Original file line number Diff line number Diff line change 843843 ],
844844 "build_args" : [
845845 # From mx.graalpython/native-image.properties
846- "-Dpolyglot.image-build-time.PreinitializeContexts=python" ,
847846 "--add-exports" , "org.graalvm.nativeimage/org.graalvm.nativeimage.impl=ALL-UNNAMED" ,
848847 "-R:StackSize=16777216" ,
849848 "-H:+AddAllCharsets" ,
You can’t perform that action at this time.
0 commit comments