Skip to content

Commit 3b48cbc

Browse files
committed
Launcher: give native permission to JLine FFM provider
1 parent 9ec4e12 commit 3b48cbc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,12 +2036,16 @@ def bytecode_dsl_build_args():
20362036
'-J-Xms14g', # GR-46399: libpythonvm needs more than the default minimum of 8 GB to be built
20372037
'-H:+DetectUserDirectoriesInImageHeap',
20382038
'-H:-CopyLanguageResources',
2039+
# Uncomment to disable JLine FFM provider at native image build time
2040+
# '-Dorg.graalvm.shadowed.org.jline.terminal.ffm.disable=true',
2041+
'--enable-native-access=org.graalvm.shadowed.jline',
20392042
'-Dpolyglot.python.PosixModuleBackend=native',
20402043
'-Dpolyglot.python.Sha3ModuleBackend=native',
20412044
] + bytecode_dsl_build_args(),
20422045
language='python',
20432046
default_vm_args=[
20442047
'--vm.Xss16777216', # request 16M of stack
2048+
'--vm.-enable-native-access=org.graalvm.shadowed.jline',
20452049
],
20462050
),
20472051
],

mx.graalpython/suite.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@
823823
"liblang_relpath": "../lib/<lib:pythonvm>",
824824
"default_vm_args": [
825825
"--vm.Xss16777216", # request 16M of stack
826+
'--vm.-enable-native-access=org.graalvm.shadowed.jline',
826827
],
827828
},
828829

@@ -845,6 +846,9 @@
845846
"-Dorg.graalvm.launcher.class=com.oracle.graal.python.shell.GraalPythonMain",
846847
# GraalPy standalone specific flags
847848
"-J-Xms14g", # GR-46399: libpythonvm needs more than the default minimum of 8 GB to be built
849+
# uncomment to disable JLine FFM provider at native image build time
850+
#'-Dorg.graalvm.shadowed.org.jline.terminal.ffm.disable=true',
851+
'--enable-native-access=org.graalvm.shadowed.jline',
848852
"-Dpolyglot.python.PosixModuleBackend=native",
849853
"-Dpolyglot.python.Sha3ModuleBackend=native",
850854
],

0 commit comments

Comments
 (0)